HTML & WEB-Design

Moderators: Jonathan
Number of threads: 1253
Number of posts: 3360

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Blinkie Help Posted by MasterJ on 5 Oct 2004 at 8:21 PM
Hey guys, i need help figuring out this problem in this code, its a code that is supposed to have blinking words of some sort, i am new at this and trying to figure it out! here it is

<HTML>


<HEAD>
<TITLE>Blinky Web site</Title>
</HEAD>

<BODY>

<CENTER>
<P><h5> Time to blink it up</h5></p>
<style type=text/css>.blinker
{Padding-right: 10px; padding-left: 10px; border-left-color:#CC6600; padding-bottom: 10px
; width: 150px; cursor: pointer; border-top-style: solid; border-top-color:#CC0000; padding top: 10px; border-bottom: #6666FF 5px solid; border-right-style: solid; border-left-style: solid; height: 40px; background-color: blue; text-align: center; border-right-color:#003300}
</style>

<script type=text/javascript>
<!--//var oldtag,blinker,color=[];
function blink (element, color1){
var isID = document.getElementById,
isIE = document.all;if((!isIE && e || event) && (!isIE && e ||event.type.match(/click|load/i)){
if(oldtag && !oldtag.match(element) || color.length == 0) {
color = {isID (element). currentStyle.backgroundColor,color1];}
</BODY>
</HTML>

Thanks for all your guys's help.
Report
Re: Blinkie Help Posted by sethssh on 6 Oct 2004 at 1:39 AM
<HTML>


<HEAD>
<TITLE>Blinky Web site</Title>

<script>
var isDOM=(document.getElementById)?true:false;
var isMSIE=(document.all && document.all.item)?true:false;
var isNC4=(document.layers)?true:false;
var i=0;
var blink_speed=150;

styleSwitch=".style";
layerPostfix="\"]";

if(isNC4)
{
alert("You are using outdated version of Netscape Navigator that does not support the latest technological features. We are sorry, but our web site cannot be displayed corectly in this browser. We recommend using Internet Explorer 5.5 or higher, Netscape Navigator 6.0 or higher, Mozzila 1.0 or higher.");
layerRef="document.layers[\"";
styleSwitch="";
}

if(isMSIE)
{
layerRef="document.all[\"";
}

if(isDOM)
{
layerRef="document.getElementById(\"";
layerPostfix="\")";
}
function Blink(divname) {
if (i%2==0) {
eval(layerRef+divname+layerPostfix+styleSwitch+".visibility=(isNC4?'show':'visible')");
}
else {
eval(layerRef+divname+layerPostfix+styleSwitch+".visibility=(isNC4?'hide':'hidden')");
}
if(i<1) {
i++;
}
else {
i--
}

setTimeout("Blink('"+divname+"')",blink_speed);

}

</script>

</HEAD>

<BODY>

<center>
<div id="bl_1">Time to Blink</div>
<script language="javascript">Blink('bl_1');</script>
</center>


</BODY>
</HTML>

Report
Re: Blinkie Help Posted by MasterJ on 6 Oct 2004 at 6:42 PM
Hey guys, thanks so much for helping me out! See ya guys later.
Report
Re: Blinkie Help Posted by Weirdofreak on 6 Oct 2004 at 9:32 AM
If you want blinking text, use the [lt]blink[gt] tag (I think that's what it is, anyway). This has the added advantage of allowing users to turn it off if for some odd reason they find blinking text really, really annoying.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.