Hi, I hate to bother you hard working expert guys, but I need help. I need to use the DD Pop-it Menu found at http://www.dynamicdrive.com/dynamicindex1/popit.htm, which works great in combination with the DD Floating Menu Script found at http://www.dynamicdrive.com/dynamici...staticmenu.htm. I have gotten the Pop-it Menu to look very similar to the Floating Menu by adding tags inside the array (see below). But, I have a problem, one major and one minor that I need help with. The major issue is that the links in the Pop-it Menu are movie files (.avi) and I want to use a pop-up window so the user can keep reading while the movie(s) load(s). Well, I have some short old code for a pop-up window that I got from my son and I'm using this function elsewhere on the page, also with no problem. But, when I use the popup window call inside the Pop-it Menu links, I think the reference to the onClick of the Popup window is incorrect, and it doesn't function, instead acting like an ordinary link opening new content (actually replacing the main page.) The popup window code I'm using is this:
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href,windowname,'width=350,height=290,left=350,top=250,resizable=yes');
return false;
}
//-->
and the call that works outside of the Pop-it Menu is this:
<p class="p2"><a href="http://earth.engr.ccny.cuny.edu/noaa/wc/IMGP1662.mov" onClick="return popup(this, 'indexpopup')">Movie of the MFR-7 Shadowband Radiometer in operation.</a></p>
and the call that doesn't work because of (I think) the onClick event, when used inside of the Pop-up Menu Script, is this:
var linkset=new Array()
linkset[0]='<font style class="mhd">'
linkset[0]+=' TOTAL SKY MOVIES '
linkset[0]+='</font>'
//linkset[0]+='<hr>' //Optional Separator
linkset[0]+='<font style class="mlk">'
linkset[0]+='<a href="http://earth.engr.ccny.cuny.edu/noaa/wc/TSIData/050426.avi" onClick="return popup(this, "indexpopup")">26-Apr-2005 14.5M</a>'
... etc.
I've tried changing 'this' to 'main' and 'menuobj' with no change, still overwrites the window.
The second minor problem is trying to get the background color of the the menu headers to look alike. The color doesn't fill the Popit Menu correctly leaving white space on the right header, and I'll link to a site when I get a working popup window mod to post.



Reply With Quote
I hope that someone in the future will benefit from my assembly.


Bookmarks