-
Javascript & HTML iFrame Linking Problem!
Ok everyone, i am using the JS based menu found on Dynamic Drive.
On my index.html page i have:
<iframe name="FRAME1" src="index2.html" width="1000" height="420" frameborder="0" ></iframe>
Now in the JS file named menuItems i have the following code:
["Menu"],
["Link 1", "index3.htm", "content_frame"],
["Link 2", "index3.htm", "content_frame"],
["Link 3", "index3.htm", "content_frame"],
["Link 4", "index3.htm", "content_frame"],
["Link 5", "index3.htm", "content_frame"],
["Link 6", "index3.htm", "content_frame"],
Basically i would like the JS code to be edited so when Link 1, Link 2 and so on (when clicked) display the desired page (in this case index3.htm) in FRAME1 on my index.html page.
I tried editing the JS code too:
["Menu"],
["Link 1", "<a href="index3.htm" target="FRAME1">", "content_frame"],
["Link 2", "<a href="index3.htm" target="FRAME1">", "content_frame"],
["Link 3", "<a href="index3.htm" target="FRAME1">", "content_frame"],
["Link 4", "<a href="index3.htm" target="FRAME1">", "content_frame"],
["Link 5", "<a href="index3.htm" target="FRAME1">", "content_frame"],
["Link 6", "<a href="index3.htm" target="FRAME1">", "content_frame"],
But it doesn't seem to work.. Can anybody please help?
Thank you
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks