buttons
I there a way to create a button that is flashing when you first open your browser page then once you click on it, it does not flash anymore?
I there a way to create a button that is flashing when you first open your browser page then once you click on it, it does not flash anymore?
Malte posted this at 18:08 — 27th December 1999.
They have: 297 posts
Joined: Apr 1999
Yep,
do a rollover with the flashing image as default and onClick change it to the non-flashing image.
Post if you need more detailed info concerning the script.
Malte
------------------
Malte Ubl - www.Boardzilla.org
Communication: public<->programmers
of the Boardzilla BB
jules posted this at 15:50 — 30th December 1999.
They have: 37 posts
Joined: Oct 1999
Here is my script that I am using. It blinks ok but I don't know how to get it to stop when I click on it. Also I have another button that I want to blink but I can't get it to work with this script. Only one will blink. Any idea's?
browser_name = navigator.appName;
browser_version = parseFloat(navigator.appVersion);
if (browser_name == "Netscape" && browser_version >= 3.0) { roll = 'true'; }
else if (browser_name == "Microsoft Internet Explorer" && browser_version >= 3.0) { roll = 'true'; }
else { roll = 'false'; }
var state = 1;
function changeImage(){
if (roll == 'true') {
if (state == 1) {
document.blinker.src = "info_0.gif";
state = 2;
} else if (state == 2) {
document.blinker.src = "info_1.gif";
state = 1;
}
}
}
<a href="demo.html" onMouseOut="msout1('blinker','info_0.gif');">
<img src="info_0.gif" name="blinker" onLoad="setTimeout('changeImage()', 500)" border=0></a>
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.