|
|
|
|
![]() ![]() |
Feb 22 2006, 03:42 PM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 407 Joined: 13-December 04 Member No.: 2,696 |
I have a Java Menu and on the data part of it which would be al the text and links i have
td_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 Iframe do 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 here anyone got any ideas if this is correct or if theres a better way of doing it? |
|
|
|
Feb 24 2006, 10:58 AM
Post
#2
|
|
|
Newbie [Level 3] ![]() ![]() ![]() Group: Members Posts: 45 Joined: 24-February 06 Member No.: 19,079 |
Firstly, I would do it using an array, as it is much neater and easier to access:
CODE 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: CODE function open_content (which) { iframename.location = urles[which]; } Or something like that. |
|
|
|
Feb 24 2006, 11:01 PM
Post
#3
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 407 Joined: 13-December 04 Member No.: 2,696 |
thanks!
|
|
|
|
Feb 25 2006, 03:56 PM
Post
#4
|
|
|
Newbie [Level 3] ![]() ![]() ![]() Group: Members Posts: 45 Joined: 24-February 06 Member No.: 19,079 |
|
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 23rd November 2008 - 12:45 AM |