Help - Search - Members - Calendar
Full Version: Simple HTML or not....
4peeps.com Forums > General Hardware/Software > Programmers Corner
FLuXx
First take a look at this site im working on. Nuclear Knights

What I am trying to do is (See where it says News?) when they click one of those links in the menu, and loads the page into the IFrame, to change the text in that cell.

Didn't find any javascript that did this specifically. Any help for yo old friend again? icon_wink.gif
Ghandi
that would be some DHTML (Dynamic Htper Text Markup Language) i believe...

that is html and javascript doing funky stuff....
Mandark
http://www.boogiejack.com/iframes.html

you look it up dude... icon_wink.gif
Mandark
ok then, thank me later..... if not, don't expect any more help. No javascript is even needed... this is straight HTML. If you do a DHTML menu that is your choice and this method would still work.
Mandark
icon_lol.gif icon_lol.gif icon_lol.gif
FLuXx
Sorry I've been busy with college. No I don't need help with the actual IFrame....I haven't found any script that does it (HTML, DHTML, Javascript)

But there is one more DHTML resource i plan on looking at that might have it.
Mandark
if you look at the sample I referenced.... you could easily create your own JavaScript to accomplish that task

giving you the final product is not productive, you won't learn anything that way man... just want you to learn and grow...

but if you must.....

http://www.js-examples.com/example/?ex=449...1&COLOR_OFF=YES

QUOTE
<html>
<head>
<!--
This file retrieved from the JS-Examples archives
http://www.js-examples.com
1000s of free ready to use scripts, tutorials, forums.
Author: JS-Examples - http://www.js-examples.com/  
-->



</head>
<body>

<a href="java script:doIt(1)">BEFORE</a><BR>
<iframe name=fm1 border=1 width=200 height=200 src="http://www.js-examples.com"></iframe>
<BR>AFTER
<BR>
NOTE: iframe is to be used in IE only.
<script>
function doIt(_v)
{
 if (_v==1)
 {
   document.all.fm1.src="http://www.js-examples.com/consult/";
 }
}
</script>

<center><a href='http://www.js-examples.com'>JS-Examples.com</a></center>  
</body>
</html>
FLuXx
im greatful for ur help..but i still dont think u get what im trying to do.

when you click the link in the menu. it changes the page in the iframe, i knew how to do that no problem....but at the same TIME you click the link to load a new page into the IFrame, i want that table cell that currently says "News" to change according to the link they click on, which isn't in the IFrame
Mandark
oops.... icon_redface.gif well, a demo site that is up might help

when u first posted i did not even see the iFrame working right.
FLuXx
yeah i had to make width and height in percent. then give the frame a name and made default link point to that frame. ive seen it done before so i know its possible

edit: fixed the link
Ghandi
your site loads quickly enough which rather than using the iframe you could do it without it...but that is your choice not mine.
Mandark
i think you are going to have to use the document object model to get to that cell in the table.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.