PDA

View Full Version : Setting target for Pop-It Menu



BellyGrooves
10-06-2010, 01:57 PM
1) Script Title: Pop-It Menu

2) Script URL (on DD):
Pop-It Menu - http://www.dynamicdrive.com/dynamicindex1/popit.htm
CSS Layout - http://www.dynamicdrive.com/style/layouts/item/css-fixed-layout-21-fixed-fixed/

3) Describe problem:
Im using the pop it menu (here at Dynamic Drive)
with a 2 column fixed layout w/ a header and footer [Dynamic Drive: CSS Fixed Layout #2.1- (Fixed-Fixed)]


I change the layout slightly (purple portion was added).

<div id="contentwrapper">
<div id="contentcolumn"; style="#ff0000; color : #ffffff; padding : 4px; width :740px; height : 398px; overflow : auto;">
<div class="innertube">
<b>Content Column: <em>Fixed</em></b>
</div></div>


Problem I am having is that I cannot figure how to get my various pages to open up in the content column of my CSS. How do I target items in my menu (which I have placed in the left column of the page) to open in the content column?
Bear in mind I am pretty much a neophite when it comes to all this...

Thanks

ddadmin
10-07-2010, 07:09 AM
One way to do this is first to place an IFRAME inside the content column, such as:


<iframe name="myframe" style="width:100%;height:400px"></iframe>

Then for the links inside pop it menu, add a target attribute inside them to target this iframe, for example:


linkset[0]+='<a href="http://www.javascriptkit.com" target="myframe">JavaScript Kit</a>'
linkset[0]+='<a href="http://www.codingforums.com" target="myframe">Coding Forums</a>'
"
"

BellyGrooves
10-07-2010, 02:47 PM
Thanks, that worked great!
MUCH APPRECIATED