Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

menu moves dynamically

Status
Not open for further replies.

rry2k

Programmer
Jun 28, 2001
678
US
I just found a site where the menu in the frame on the left moves down to stay in the view as you scroll on the right.
Can someone tell me/show me how this code works.

Thanks..Russ
 
Cute trick. I'd be more impressed if their image links weren't dead. Cute tricks don't impress me as much as making sure all your images actually load.

Part of the source for the menu is in the file "popupjs.js". You can access that with your browser. Here's what it contains:
Code:
if (document.layers){
document.write('<Script Language=&quot;JavaScript&quot; Src=&quot;popupnn.js&quot;><\/Script>');
document.write('<Script Language=&quot;JavaScript&quot; Src=&quot;mypopnn.js&quot;><\/Script>');
}
if (document.all){
document.write('<Script Language=&quot;JavaScript&quot; Src=&quot;popupie.js&quot;><\/Script>');
document.write('<Script Language=&quot;JavaScript&quot; Src=&quot;mypopie.js&quot;><\/Script>');
}
You can get to those js files the same way.
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top