hi i am trying to make a div move but i want to make a loop so i can move more than one. I put the variables into the funtion, it works fine with the destination variables but when put x and y in the function it returned get elementById is null. I am wondering why this has happened thanks [CODE] <script type="text/javascript"> function moveimg() { var x = 10; //Starting Location - left var y = 10; //Starting Location - top var dest_x = 400; //Ending Location - left var dest_y = 200; //Ending Location - top intervalX = …

Member Avatar
Member Avatar
+0 forum 1

hi my navigaion keeps on moving onto a new line and i cant seem to stop it. i have tried all that i can think of. thanks [CODE] body{ height:100%; width: 150%; margin:0; } #nav{ clear:both; font-weight:bold; color:black; margin-left:4px; float:left; list-style-type:none; background:url(navshadow.gif) no-repeat 8px 100% #fff; width:100; padding-bottom:21px; position:absolute; left:15%; } html>body #nav{ margin-left:8px; background:url(navshadow.gif) no-repeat <strong>4px</strong> 100% #fff; } #nav li{ list-style-type:none; float:left; margin:0 0 0 4px; padding:0 0 0 10px ; border-bottom:1px solid #999; background:url(tabgrey.png) #c0c0c0 top left no-repeat; } #nav li a{ color:black; background:url(tabgrey.png) transparent top right no-repeat; display:block; padding:0 10px 0 0; float:left; } #nav li.cur, …

Member Avatar
Member Avatar
-1 forum 3

hi i am trying to change some divs with the time however i seem to have gone wrong at some point and cant seem to figure out where. Please excuse the writting in them i am going to change it thanks.[CODE] <script type="text/javascript"> /*<![CDATA[*//*---->*/ var one, two, three, four,five, six, seven, eight, nine, ten, eleven, twelve, thirteen; function initiate() { one = setTimeout("first()",500); } function first() { clearTimeout(one); document.getElementById("one").style.visibility="hidden"; document.getElementById("two").style.visibility="visible"; two = setTimeout("second()",500); } function second() { clearTimeout(two); document.getElementById("two").style.visibility="hidden"; document.getElementById("three").style.visibility="visible"; three = setTimeout("third()",500); } function third() { clearTimeout(three); document.getElementById("three").style.visibility="hidden"; document.getElementById("four").style.visibility="visible"; four = setTimeout("fourth()",500); } function fourth() { clearTimeout(four); document.getElementById("four").style.visibility="hidden"; document.getElementById("five").style.visibility="visible"; …

Member Avatar
Member Avatar
+0 forum 2

hi i am following this etutorial and the code is not working and dont get why. There are two bits of code: [CODE] > <body> <? $sonnet76 = <<<HERE Sonnet # 76, William Shakespeare Why is my verse so barren of new bride, And keep invention in a noted weed, HERE; $fp = fopen("sonnet76.txt", "w"); fputs($fp, $sonnet76); fclose($fp); ?> [/CODE] When i click this file i get permision denied and it wont write even thou i have allowed all the permisions. [CODE] <body> <? $fp = fopen("saveSonnet.php", "r"); //first line is title $line = fgets($fp); print "<center><h1>$line</h1></center>\n"; print "<center>\n"; //print …

Member Avatar
Member Avatar
-1 forum 3

The End.