PDA

View Full Version : pop it menu target



madpeter
12-28-2004, 02:18 AM
how do i get the pop it menu to target a iframe?

cr3ative
12-28-2004, 01:46 PM
p

cr3ative

ddadmin
12-28-2004, 11:02 PM
Assuming your iframe has an ID of "myiframe", try altering one of the menu items so it reads:

linkset[0]='<div class="menuitems"><a href="javascript:document.getElementById('myiframe').src='http://www.dynamicdrive.com'">Dynamic Drive</a></div>'

In other words, the code:

javascript:document.getElementById('myiframe').src='http://www.dynamicdrive.com'

should be used as the href portion of the menu link.