floating table??

liunx

Guest
ok guys u have helped me so much with my site here it is it is nothing amazing or nothin just a lowsy personal website that has given me something to do with my wasted time<br />
<br />
<!-- m --><a class="postlink" href="http://www.boomspeed.com/boxcarmember/main.html">http://www.boomspeed.com/boxcarmember/main.html</a><!-- m --><br />
<br />
i have another question though, if u look on the pages journal or links or programs, u see that navigation table on the left? well is is possible to make that, what i believe thay call, float? so it is always on the screen even if somebody scrolls down? like so if i am at the top of the page and scroll to the bottom the navgation table is still in view? do u understand my question?<br />
<br />
also one more question does anybody know where i can get flash buttons, like choose the style i want and insert the text i want to say on the button and insert the url and it make the .swf file for me? i used to know of a site that did that but i have forgotten the url<!--content-->Yes it's possible to do what you want. Just search for DHTML menus and you should cum across plenty you can use.<br />
Sorry about the typo on the word come, but I just can't stop laughing at the masturbate for peace link that you have on your links page. That'll sure stop the war :)<!--content-->ok thanx i will do the infamous google search and post back and yeah i like that site lol very witty and clever lol<!--content-->ok well what i was looking for was a static table not floating and i found it!!<br />
<br />
<!-- m --><a class="postlink" href="http://dynamicdrive.com/dynamicindex1/staticmenu.htm">http://dynamicdrive.com/dynamicindex1/staticmenu.htm</a><!-- m --><br />
<br />
i had to mess around with the code to figure out where to put what exactly to get just the left table to be static and it works great just in case someboyd is having trouble with where to put the code and stuff here is how my code look so just the left table (navigation) is static and not both of them:<br />
<br />
<br />
<table cellpadding="4" cellspacing="2" border="0" width="100%" align="center"><br />
<tr valign="top"><br />
<td><br />
<br />
<script><br />
if (!document.layers)<br />
document.write('<div id="divStayTopLeft" style="position:absolute">')<br />
</script><br />
<br />
<layer id="divStayTopLeft"><br />
<br />
<table cellpadding="2" cellspacing="0" border="0" width="100%" align="left"><br />
<tr valign="top" height="400"><br />
<td align="center" background="http://www.boomspeed.com/boxcarmember/tablemenu.gif" style="width: 100%; color: 006699; background-color: 000000; border-width: 1px; border-style: solid; border-color: 000000"><br />
<span style='filter:glow(color="#006699",strength="4");font-size:"15";width:"100%"'><font color="#000000">NavigatioN</font></span><br />
<BR><br />
<BR><br />
<BR><br />
<BR><br />
<BR><br />
<BR><br />
<a href=http://www.htmlforums.com/archive/index.php/"http://www.boomspeed.com/boxcarmember/main.html">Main</a><br />
<BR><br />
<BR><br />
<a href=http://www.htmlforums.com/archive/index.php/"http://www.boomspeed.com/boxcarmember/site.html">My Random <BR>Site</a><br />
<BR><br />
<a href=http://www.htmlforums.com/archive/index.php/"http://www.boomspeed.com/boxcarmember/programs.html">Programs</a><br />
<BR><br />
<a href=http://www.htmlforums.com/archive/index.php/"http://www.boomspeed.com/boxcarmember/journal.html">Journal</a><br />
</td><br />
</tr><br />
</table><br />
<br />
</layer><br />
<br />
<td align="left" style="width: 85% ; height: 100%; valign: top"><br />
<a href=http://www.htmlforums.com/archive/index.php/"http:\\masturbateforpeace.com" target="_blank"><font size="2">Masturbate for Peace</font></a><br />
</td><br />
<br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<script type="text/javascript"><br />
<br />
/*<br />
Floating Menu script- Roy Whittle (<!-- m --><a class="postlink" href="http://www.javascript-fx.com/">http://www.javascript-fx.com/</a><!-- m -->)<br />
Script featured on/available at <!-- m --><a class="postlink" href="http://www.dynamicdrive.com/">http://www.dynamicdrive.com/</a><!-- m --><br />
This notice must stay intact for use<br />
*/<br />
<br />
//Enter "frombottom" or "fromtop"<br />
var verticalpos="fromtop"<br />
<br />
if (!document.layers)<br />
document.write('</div>')<br />
<br />
function JSFX_FloatTopDiv()<br />
{<br />
var startX = 3,<br />
startY = 150;<br />
var ns = (navigator.appName.indexOf("Netscape") != -1);<br />
var d = document;<br />
function ml(id)<br />
{<br />
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];<br />
if(d.layers)el.style=el;<br />
el.sP=function(x,y){this.style.left=x;this.style.top=y;};<br />
el.x = startX;<br />
if (verticalpos=="fromtop")<br />
el.y = startY;<br />
else{<br />
el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;<br />
el.y -= startY;<br />
}<br />
return el;<br />
}<br />
window.stayTopLeft=function()<br />
{<br />
if (verticalpos=="fromtop"){<br />
var pY = ns ? pageYOffset : document.body.scrollTop;<br />
ftlObj.y += (pY + startY - ftlObj.y)/8;<br />
}<br />
else{<br />
var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;<br />
ftlObj.y += (pY - startY - ftlObj.y)/8;<br />
}<br />
ftlObj.sP(ftlObj.x, ftlObj.y);<br />
setTimeout("stayTopLeft()", 10);<br />
}<br />
ftlObj = ml("divStayTopLeft");<br />
stayTopLeft();<br />
}<br />
JSFX_FloatTopDiv();<br />
</script><br />
<br />
</body><!--content-->
 
Back
Top