/    Sign up×
Community /Pin to ProfileBookmark

DDFrameForm for iframes?

hello there!

i saw a cool effect on this site > [url]http://www.yuukitenshi.net/baroque[/url] , drop down menu as a navi bar with links to the frames. exploring the code, i’ve found out what script did the trick there, and wanted to use it on my next layout. so i did the lay, set the drop down menu, and… not working >.> [ [url]http://pinktrash.org/proba[/url] ] the script as it appeared is designed for frames in framesets, and i used an iframe. i tried targetting to ‘main’ [the name/id of the iframe] and een writing whole links instead the names in the menu, but it didn’t help either.
.. and then i found that te script came from htmlgoodies ^^;

any ideas on how to fix that?

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@saulssNov 21.2005 — you were trying to point to this nonexistent frame
parent.frames[1]
use this instead
<SCRIPT LANGUAGE="JavaScript">
[COLOR=DarkOrange]function changeContent(newUrl)
{
if(newUrl!="default")
document.getElementsByName("main")[0].src=newUrl;//changes the first element in the document with "main" as the name
}[/COLOR]
</SCRIPT>

...

<select name="DDFrameForm" size="1" onChange="[COLOR=DarkOrange]changeContent(this.value)[/COLOR]" style="font-size: 12px; font-family: Arial; color: #410000; background-color: #9B623CS">
<option value="default" selected style="background-color:#9B623C;color:#410000;">N a v i g a t i o n   M e n u
<option value="main.htm" style="background-color:#410000;color:#9B623C;">M a i n   P a g e.
<option value="bucktick.htm" style="background-color:#9B623C;color:#410000;">      Buck-Tick
<option value="despairsray.htm" style="background-color:#410000;color:#9B623C;">      D'espairsRay
<option value="kagerou.htm" style="background-color:#9B623C;color:#410000;">      Kagerou
<option value="lver.htm" style="background-color:#410000;color:#9B623C;">      La Vie En Rose
<option value="mucc.htm" style="background-color:#9B623C;color:#410000;">      Mucc
<option value="orangerange.htm" style="background-color:#410000;color:#9B623C;">      Orange Range
<option value="vidoll.htm" style="background-color:#9B623C;color:#410000;">      Vidoll
<option value="live.htm" style="background-color:#410000;color:#9B623C;">      Live Reports
</select>

Copy linkTweet thisAlerts:
@tenkoauthorNov 21.2005 — thank you! ?
×

Success!

Help @tenko spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...