Hi,
I'm trying to make my heading text 'flash' in dreamweaver....can anyone help me with this?
Cheers
S
| SitePoint Sponsor |
Hi,
I'm trying to make my heading text 'flash' in dreamweaver....can anyone help me with this?
Cheers
S


flash as in change colour or flash as in the program?
Mike Swiffin - Community Team Leader
Only a woman can read between the lines of a one word answer.....
I started out with nothing... and still got most of it left!
Change colour...
Cheers





Create an animated .GIF or use <blink></blink> (not sure what browsers support it).

Are you sure this is a good thing to do snowyriver?
Egor, I believe <blink> is not a standard HTML tag!
it works in FF but not it in IE! also in Netscape it could cause the whole page to blink!![]()


quick bit of Javascript should do it....
SpikeCode:<body onload="changeColour('blinky');"> <script type="text/javascript"><!-- function changeColour(elementId) { var interval = 500; var colour1 = "#ff00ff", colour2 = "black"; if (document.getElementById) { var element = document.getElementById(elementId); element.style.color = (element.style.color == colour1) ? colour2 : colour1; setTimeout("changeColour('" + elementId + "')", interval); } } //--></script> <p id="blinky">This should change colour</p>
Mike Swiffin - Community Team Leader
Only a woman can read between the lines of a one word answer.....
I started out with nothing... and still got most of it left!
don't!![]()
monkey - the rest is history


I only answer the questions but yes I agree!Originally Posted by boxhead
(that is if you are referring to not using flashing text and not to using my javascript......)
Mike Swiffin - Community Team Leader
Only a woman can read between the lines of a one word answer.....
I started out with nothing... and still got most of it left!
The Javascript is beautiful, blinking text is not!Originally Posted by spikeZ
![]()
monkey - the rest is history
... or use CSS like I do it on my own index.html page:Originally Posted by snowyriver
... and the code for the head (or an external .css file):Code:<div class="blink">text to blink</div>
hth, satyrCode:div.blink { text-decoration: blink; }
See my computing-related homepage: http://tadej-ivan.50webs.com/.


cant see any blinking text on your page satyr, and AFAIK that doesn't work in all browsers.
Mike Swiffin - Community Team Leader
Only a woman can read between the lines of a one word answer.....
I started out with nothing... and still got most of it left!


nice effort tho![]()
Really?? Because in my case (on my computer) it works in Firefox and in Internet Explorer. /UPDATE: Oh well I just checked: it works only in Firefox ...Originally Posted by spikeZ
satyr
See my computing-related homepage: http://tadej-ivan.50webs.com/.


Never mind satyr! live and learn![]()
Mike Swiffin - Community Team Leader
Only a woman can read between the lines of a one word answer.....
I started out with nothing... and still got most of it left!
It blinks on in firefox. Not in IE and opera. Also a horizontal and vertical scroll bar appears in firefox and opera but not in IE.
Kirtan
Bookmarks