/    Sign up×
Community /Pin to ProfileBookmark

help please!!!

ok i got a code fomr somewhere in this forum which i cant find now…

anyway it was a dropdown menu that when clicked brought up a webpage in a iframe spot…

works great but i want text links rather than a dropdown menu, can anyone give me this code??

here the code with the dropdown menu


*********************************************

<head><meta http-equiv=”Content-Type” content=”application/xhtml+xml; charset=iso-8859-1″ />
<style type=”text/css”>
/*<![CDATA[*/
#myFrame {
width: 600px;
height: 525px;
}
/*]]>*/
</style>

<script type=”text/javascript”>
//<![CDATA[
function changeframe(Obj) {
document.getElementById(‘myFrame’).src=Obj.options[Obj.selectedIndex].value;
}
//]]>
</script>

</head>

<form id=”form1″ action=”#” method=”post”>
<div>
<select name=”select1″ onchange=”changeframe(this);”>
<option value=””>&lt;Navigation&gt;</option>
<option value=”http://”>Music</option>
<option value=”http://forumer.com/lp”>LP Forums</option>
<option value=”http://”>Free Avatars</option>
<option value=”http://”></option>
<option value=”http://”></option>
</select>
</div>
</form>

<iframe id=”myFrame” src=”http://www.angelfire.com/hiphop3/board/newlpbanner.JPG” frameborder=”1″></iframe>

i just want it to use text links rather than a dropdown menu ?

and while im askin is there anyway to embed a yahoo group into a webpage?

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@96turnerriFeb 12.2004 — <body>

<a href="http://www.amazon.com" target="page">Amazon</a> | <a href="http://www.play.com" target="page">Play</a> | <a href="http://www.ebay.co.uk">eBay</a><br><br>

<iframe name="page" width="95%" height="500"></iframe>

easiest way for yahoo! group would be to use a frame with src set to group page
Copy linkTweet thisAlerts:
@werdauthorFeb 12.2004 — thanks code works great!

is there a way to get the dropwdown and the text links to use the same iframe window??
Copy linkTweet thisAlerts:
@96turnerriFeb 12.2004 — change this

[code=php]
<style type="text/css">
/*<![CDATA[*/
#myFrame {
width: 600px;
height: 525px;
}
/*]]>*/
</style>

<script type="text/javascript">
//<![CDATA[
function changeframe(Obj) {
document.getElementById('myFrame').src=Obj.options[Obj.selectedIndex].value;
}
//]]>
</script>
[/code]


to this

[code=php]
<style type="text/css">
/*<![CDATA[*/
#page {
width: 600px;
height: 525px;
}
/*]]>*/
</style>

<script type="text/javascript">
//<![CDATA[
function changeframe(Obj) {
document.getElementById('page').src=Obj.options[Obj.selectedIndex].value;
}
//]]>
</script>
[/code]
Copy linkTweet thisAlerts:
@werdauthorFeb 12.2004 — ok that code worked but when i split the link fomr the iframe part it doesnt showup right...

wut im doin is puttin links in a navigation bar and puttin the iframe beside it...

the dropdown 1 worsk like that but when i put the text links 1 like that the iframe is really small....
Copy linkTweet thisAlerts:
@96turnerriFeb 12.2004 — what do you mean by small? do you have a link or complete code?
×

Success!

Help @werd 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 5.24,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...