kvarnerexpress 0 Report post Posted February 22, 2006 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
smartbei 0 Report post Posted February 24, 2006 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
kvarnerexpress 0 Report post Posted February 24, 2006 thanks! Share this post Link to post Share on other sites
smartbei 0 Report post Posted February 25, 2006 thanks! No Problem :-) Share this post Link to post Share on other sites