PDA

View Full Version : need help with drop-down document viewer 2.



obinnahenree
06-08-2007, 05:35 PM
1) Script Title: drop-down document viewer 2

2) Script URL (on DD): http://dynamicdrive.com/dynamicindex3/dropdownview2.htm

3) Describe problem: Hi, all. I created a dropdown menu with macromedia fireworks and i want all links to load in the inline frame.So i configured the anchor tags as described in the drop-down document viewer 2 tutorial as in:
<a href="javascript:jumpto('products.html')">products</a>, where products.html is in the same dir as the page having the inline frame.But i encounter a problem that it only loads the page in the inline frame only if the link points to page i specified in the :
var iframecode='<iframe id="external" style="width:95&#37;;height:400px" src="index2.html"></iframe>': that is index2.html. ie, index2.html or an external link like "http://www.yahoo.com".
if a link on the dropdown popupmenu refers to another page on my site say:services.html, like
<a href="javascript:jumpto('services.html')">services</a>, note:services.html is in the same dir as page having the link: it would just shows nothing on the inline frame, but a white background. please help me.
Thanks