iDerek
Aug 21st 2008, 7:03 pm
Hello,
I have a script that allows you to onmouseover a link and have it drop down to an array of several more links. It was working perfectly in this format:
//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="home.htm" target="myframe">Home</a>'
menu1[1]='<a href="staff.htm" target="myframe">Staff</a>'
menu1[2]='<a href="jobs.htm" target="myframe">Jobs</a>'
But I have ANOTHER script that will stretch the page of my iFrames to accomodate the content. Therefore, I had to implement this string of code into my drop downs in this format:
//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="javascript:loadintoIframe('myframe', 'external.htm')">Home</a>'
menu1[1]='<a href="javascript:loadintoIframe('myframe', 'external.htm')">Staff</a>'
menu1[2]='<a href="javascript:loadintoIframe('myframe', 'external.htm')">Jobs</a>'
At that point, the drop down no longer "drops down." It stays frozen as a link. If you have ANY suggestions, please post them here!
Many Thanks!
Derek
P.S. If you need the full link, you can view the source code at habbotrax.com
I have a script that allows you to onmouseover a link and have it drop down to an array of several more links. It was working perfectly in this format:
//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="home.htm" target="myframe">Home</a>'
menu1[1]='<a href="staff.htm" target="myframe">Staff</a>'
menu1[2]='<a href="jobs.htm" target="myframe">Jobs</a>'
But I have ANOTHER script that will stretch the page of my iFrames to accomodate the content. Therefore, I had to implement this string of code into my drop downs in this format:
//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="javascript:loadintoIframe('myframe', 'external.htm')">Home</a>'
menu1[1]='<a href="javascript:loadintoIframe('myframe', 'external.htm')">Staff</a>'
menu1[2]='<a href="javascript:loadintoIframe('myframe', 'external.htm')">Jobs</a>'
At that point, the drop down no longer "drops down." It stays frozen as a link. If you have ANY suggestions, please post them here!
Many Thanks!
Derek
P.S. If you need the full link, you can view the source code at habbotrax.com