Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 13 of 13
  1. #1
    New to the CF scene
    Join Date
    Mar 2005
    Location
    Long Island
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    need help with a link code

    I am trying to make a link code that when you role over it with the mouse it plays a song or sound anyone now how to do it

  • #2
    New Coder
    Join Date
    Sep 2004
    Location
    California
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you could do it easyly in dreamweaver by using behavior..

  • #3
    Senior Coder chilipie's Avatar
    Join Date
    Jul 2004
    Location
    Shrewsbury, UK Age: 16
    Posts
    1,117
    Thanks
    0
    Thanked 0 Times in 0 Posts
    For us to help you, you have to help us.

    Which scripting languages are you intending to use? What sound format is going to be played?

    The use of correct spelling, proper sentences and plenty of information is always a sure way to get help: give us a lot, and you'll get a lot.

    And welcome to the forums .

  • #4
    New to the CF scene
    Join Date
    Mar 2005
    Location
    Long Island
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    HTML

    mp3, mid, or wma

  • #5
    New to the CF scene
    Join Date
    Mar 2005
    Location
    Long Island
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    what is dreamweaver

  • #6
    Senior Coder chilipie's Avatar
    Join Date
    Jul 2004
    Location
    Shrewsbury, UK Age: 16
    Posts
    1,117
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by sonic43
    what is dreamweaver
    ROFL . Google is your friend .

  • #7
    New to the CF scene
    Join Date
    Mar 2005
    Location
    Long Island
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    and the link help i gave you what you needed

  • #8
    New to the CF scene
    Join Date
    Mar 2005
    Location
    Long Island
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    oh and also wav

  • #9
    New to the CF scene
    Join Date
    Mar 2005
    Location
    Long Island
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    please help me that is all the info i can give. So please supply me with an HTML code

  • #10
    New Coder
    Join Date
    Mar 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi, just download Dreamweaver from google and try that. Like the other boy said its in behaviour

  • #11
    New to the CF scene
    Join Date
    Mar 2005
    Location
    England
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You can't do that with pure HTML
    (i dont think, and i get 19/20 in the W3schools test - and i self learned it, without their lessons)

    you would have to use java (if you dont use something like dreamweaver/Net objects etc)

    in the link you would have to put the event 'OnMouseOver: <insert script name here>' and have a script that uses java to play a sound, because it is hard to get HTML to play a sound through a background player


    unfortunately i don know much java, so i cant give you a script, i an only tell you what it would look like:

    <header>

    <script type="Javascript">

    (javascript code here, for playing the file -which i dont know)

    </script>

    </header>


    <a href="ADDRESS" onMouseover: 'Ping'>


    that is roughly how it shouldbe set out :P


    sorry i couldnt help out more

  • #12
    Regular Coder
    Join Date
    Aug 2004
    Location
    The Netherlands
    Posts
    211
    Thanks
    0
    Thanked 1 Time in 1 Post
    It's Javascript, not Java. That's a programming language. But you're right about using the onmouseover attribute. I don't know Javascript so you're better of asking here.

    However, I'd like to point out that doing this will increase your loading time A LOT, and it also breaks the accessibility. But I guess you don't care anyway...

  • #13
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,253
    Thanks
    0
    Thanked 0 Times in 0 Posts

    No cross-posting, please!

    so you're better of asking here
    Whoa there, buckaroo!

    Please don't cross-post; I'll ask a moderator to move this post to the appropriate forum since a JavaScript solution does seem like the most feasable one.
    Regards,
    Ronald.
    ronaldvanderwijden.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •