Jump to content
xisto Community
Sign in to follow this  
it01y2

Need Conversion To Xhtml

Recommended Posts

<script>if (!document.layers)document.write('<div id="divStayTopLeft" style="position:absolute">')</script><layer id="divStayTopLeft"><!--EDIT BELOW CODE TO YOUR OWN MENU--><table border="1" width="130" cellspacing="0" cellpadding="0">  <tr>	<td width="100%" bgcolor="#FFFFCC">	  <p align="center"><b><font size="4">Menu</font></b></td>  </tr>  <tr>	<td width="100%" bgcolor="#FFFFFF">	  <p align="left"> <a href="http://http://www.dynamicdrive.com/ Drive</a><br>	   <a href="http://http://www.dynamicdrive.com/new.htm New</a><br>	   <a href="http://http://www.dynamicdrive.com/hot.htm Hot</a><br>	   <a href="http://http://www.dynamicdrive.com/faqs.htm;	   <a href="http://http://www.dynamicdrive.com/morezone/ Zone</a></td>  </tr></table><!--END OF EDIT--></layer><script type="text/javascript">/*Floating Menu script-  Roy Whittle (http://forums.xisto.com/no_longer_exists/ featured on/available at [url="http://forums.xisto.com/no_longer_exists/ notice must stay intact for use*///Enter "frombottom" or "fromtop"var verticalpos="frombottom"if (!document.layers)document.write('</div>')function JSFX_FloatTopDiv(){	var startX = 3,	startY = 150;	var ns = (navigator.appName.indexOf("Netscape") != -1);	var d = document;	function ml(id)	{		var el=d.getElementById?d.getElementById(id):D.all?d.all[id]:D.layers[id];		if(d.layers)el.style=el;		el.sP=function(x,y){this.style.left=x;this.style.top=y;};		el.x = startX;		if (verticalpos=="fromtop")		el.y = startY;		else{		el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;		el.y -= startY;		}		return el;	}	window.stayTopLeft=function()	{		if (verticalpos=="fromtop"){		var pY = ns ? pageYOffset : document.body.scrollTop;		ftlObj.y += (pY + startY - ftlObj.y)/8;		}		else{		var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;		ftlObj.y += (pY - startY - ftlObj.y)/8;		}		ftlObj.sP(ftlObj.x, ftlObj.y);		setTimeout("stayTopLeft()", 10);	}	ftlObj = ml("divStayTopLeft");	stayTopLeft();}JSFX_FloatTopDiv();</script>

 

Can anybody help convert this into xhtml (tradition, not strict)

 

Thanks

Rob

Edited by it01y2 (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.