I posted your code into the body of a standard ole HTML document; I got "Error on Page" from IE. Was something supposed to go into the <HEAD> area?
Here's what I did; please tell me if I did something wrong, friend: [CODE] <html> <head> <title>Untitled</title> </head> <body> <style type="text/css"> .initialState { color: #000000; }
.flickerState { color: #000099; } </style>
<script type="text/javascript"> function flicker(linkObject, 'http://google.com', flickerCount) { if( !flickerCount ) { var flickerCount = 0; }
@bubbisthedogauthorJul 17.2005 — #It does indeed work, d3! Thanks so much for taking the time to do that for me. It will be quite useful...
The thing is that this is somewhat of a 'special' case. I'm trying to open a music file from my web server via an embedded media player. I already had an onlick method running in my song hyperlinks, so I added that to yours: [CODE] <a class="initialState" href="#" onclick="flicker( this, 'http://pseudoplace.com/source/01 Track 1 cor.wma' );[COLOR=Red]document.all.plamus.filename=''http://pseudoplace.com/source/01 Track 1 cor.wma';return false"[/COLOR]>Click Me</a> [/CODE] Problem is that the song now opens in my default player (Real). How can I set the default to play in the embedded media player?
@bubbisthedogauthorJul 19.2005 — #LOL :o , the easy fix was just to remove the "url" parameter from flicker(). So then the hyperlink tag looks like this: [CODE] <a href="pseudosong.wma" onclick="flicker(this); PlayIt(this.href);return false">listen</a> [/CODE] My bad! Thanks for the help!