Jump to content
xisto Community
Sign in to follow this  
kvarnerexpress

Linking To Iframes !?

Recommended Posts

I have a Java Menu and on the data part of it which would be al the text and links i havetd_1 = "Home "url_1 = "home.html "td_2 = "Biography "url_2= "bio.html"td_3 = "Gallery "td_4 = "W W W "td_5 = "Guestbook "url_5 = ""td_6 = "More... "and alot more of course!but how do i get them to open up in the Iframedo i put them like this?td_1 = "Home "url_1 = "home.html " target="mainFrame"td_2 = "Biography "url_2= "bio.html" target="main"td_3 = "Gallery "td_4 = "W W W "td_5 = "Guestbook "url_5 = ""td_6 = "More... "I put url_1 = "home.html " target="mainFrame" but nothing,i need to open in mainFrame,I need code....And so forth?I would realy apreciate some help hereanyone got any ideas if this is correct or if theres a better way of doing it?

Share this post


Link to post
Share on other sites

Firstly, I would do it using an array, as it is much neater and easier to access:

var titles = new Array("Home", "Biography", "Gallery");var urles = new Array("home.html", "bio.html", "gallery.html");

Next, to send pages to the iframe you would write:
function open_content (which) {	 iframename.location = urles[which];}

Or something like that.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.