Forum - Index
Get your VIP Access! Get Massive Traffic For Your Site!
Network Sites: RARDownload | WarezGuru | FullDownFriends: Your Link Here!
Attention Guest: Please Register!

From sign-up to downloads in just 1 minute! This enables access to exclusive features such as viewing thousands of downloads, posting, and joining our strong community!

Welcome Guest [ Log In | Register ]

 
Reply to this topicStart new topic
   Make HTML Text Flashing!
TDSii
post Oct 14 2008, 11:56 AM
Post #1


SKDown.Net Founder
Group Icon

Group: Root Admin
Posts: 4,142
Joined: 20-April 07
From: Under The Sky
Member No.: 1




You can do it with some JavaScript magic...
<script type="text/javascript">

<!--

var b_timer = null; // blink timer

var b_on = true; // blink state

var blnkrs = null; // array of spans



function blink() {

var tmp = document.getElementsByTagName("span");

if (tmp) {

blnkrs = new Array();

var b_count = 0;

for (var i = 0; i < tmp.length; ++i) {

if (tmp[i].className == "blink") {

blnkrs[b_count] = tmp[i];

++b_count;

}

}

// time in m.secs between blinks

// 500 = 1/2 second

blinkTimer(500);

}

}



function blinkTimer(ival) {

if (b_timer) {

window.clearTimeout(b_timer);

b_timer = null;

}

blinkIt();

b_timer = window.setTimeout('blinkTimer(' + ival + ')', ival);

}



function blinkIt() {

for (var i = 0; i < blnkrs.length; ++i) {

if (b_on == true) {

blnkrs[i].style.visibility = "hidden";

}

else {

blnkrs[i].style.visibility = "visible";

}

}

b_on =!b_on;

}

//-->

</script>



A tad of CSS, e.g.,...
<style type="text/css">

.blink {

font-size: 15px;

color: red;

display: inline;

}

</style>


And a bit of mark-up... ...
<body onload="blink();">
...

This is a test of the <span class="blink">blinking text</span> thingy...which <span class="blink">blinks</span> (in theory)...

...


But just a warning, most people don't like alot of blinking stuff, so you probably should not over-use the effect.


--------------------
Go to the top of the page
 
+Quote Post

Collapse

   Similar Topics

  Topic Title Replies Topic Starter Views Last Action
No New Posts Goto first unread Text Express 2 Deluxe
1 gougerlee 18 29th June 2009 - 04:51 PM
Last post by: tranbarbara
No New Posts Goto first unread Text to Speech
0 CatchItBaby 33 29th June 2009 - 03:00 PM
Last post by: CatchItBaby
No New Posts Goto first unread TextCatch v2.6.0.1
1 sundarsmart 110 14th June 2009 - 04:10 PM
Last post by: LC_Bot
No New Posts Goto first unread Text to Speech Maker 1.7.1
0 The_Poster 5 2nd June 2009 - 09:55 AM
Last post by: The_Poster
No New Posts Goto first unread Text to Speech Maker v1.7.1
0 finsoftsdk9 67 2nd June 2009 - 06:23 AM
Last post by: finsoftsdk9

Reply to this topicStart new topic

 

RSS Lo-Fi Version
Delete cookies set by this board · Mark all posts as read
Time is now: 6th July 2009 - 11:32 PM
PhazeDDL | Stugas | twilight | DownloadWarez | ddl2 | undernation |

This site runs under DCMA Policy which is 100% under the law.