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 7 of 7
  1. #1
    New Coder
    Join Date
    Jan 2005
    Location
    San Jose, CA
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Play sound on hover without using Javascripting?

    I'd like to play a sound file whenever a mouse hovers over a hyperlink or image link, but without using Javascripts. I've seen different ways of doing this, but inconsistent results from others. The Web site (myspace.com) that I'd like to insert this does not support Javascripts, but does allow standard HTML and CSS. Thanks everyone!

  • #2
    Regular Coder
    Join Date
    May 2004
    Location
    Berkeley, California Age: 15
    Posts
    398
    Thanks
    0
    Thanked 0 Times in 0 Posts
    sorry thats impossible...

    Basic law of webcoding: XHTML for content, CSS for presentation, javascript for action. You are attempting an action, this is what javascript is required and used for. I don't understand how your website could disallow javascript unless they weren't allowing rich HTML. My opinion of sites like myspace are not too high...but oh well.
    Jalenack.com .:. YWDA Founder .:. Rounded Corners Maker 1.1! .:. My Blog
    The hardest thing about teaching is not knowing the right answers, but knowing the right questions - Elisabeth Klein
    Pretty buttons does not a great website make.

  • #3
    New to the CF scene
    Join Date
    Jan 2005
    Location
    Virginia, USA
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Doesn't support javascript?

    Its pretty hard to not allow inline javascript; are they just not allowing .js files? Usually if you put the script in the HTML page and not in a seperate .js file there is no way the server will block it.

  • #4
    Regular Coder
    Join Date
    Dec 2004
    Location
    Jamaica
    Posts
    592
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Try using <script< if it doesn't allow It's practically unethical and immoral to try to block the use of javascript.

    And yes, there are scripts that do block out javascripts.... it just doesn't render what ever's between the <script> and </script> tags.

    So try using wot i mentioned above and see if there is a difference
    I'm gonna find a way to download the internet if its the last thing I do...
    Prepare to bow down to me (or my grave) and call me almighty when the algorithm is finished

  • #5
    New to the CF scene
    Join Date
    Feb 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Macintosh

    yes you can do that and its simple just use flash.
    Musicbox Verson 2.1 for Professional Music websites, Guaranteed
    Waadia.com - New Products & Services

  • #6
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    You might try something like

    a:hover::before {
    content: url(mysound.wav);
    }

    You are supposed to be able to insert audio into webpages using the content property... maybe that will do something. I would only expect a result in Opera, however.

  • #7
    Master Coder
    Join Date
    Feb 2003
    Location
    Umeå, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Sound and the web doesn't really marry... There's no natural sound interface for the web around - either you have only wav/au files, or you need a plug-in or Java. Anyway, the way that works best (biggest number of users) is to use a Flash control for sound, if your host allows that.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards


  •  

    Posting Permissions

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