PDA

View Full Version : Iframe Help



micomator
04-04-2005, 01:25 PM
Im new to html. I want to make a webpage with hover buttons to the left, ehich (when clicked) change the url of the Iframe in the middle, I can make hover buttons, and I can make Iframes which have links which determine their destination, but I can't seem to combine them! Can you help? My page source is a bit messy because I have been adding things in hope of success and forgetting to remove them when they don't work:


<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>

<body>

<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="12%" id="AutoNumber1">
<tr>
<td width="100%">
&nbsp;</td>
</tr>
<a href="index2.html" target="iframetest"><tr>
<td width="100%">
<applet code="fphover.class" codebase="./" width="120" height="18">
<param name="textcolor" value="#FFFFFF">
<param name="text" value="Hello">
<param name="color" value="#00FFFF">
<param name="hovercolor" value="#00FF00">
<param name="effect" value="fill">
<param name="url" valuetype="ref" value="http://www.google.com" target="iframetest">
</applet></a><param name="target" value="iframetest"></td>
</tr>
</table>
<td>
</a>
<a target="iframetest" href="http://www.google.com">page1</a><br /><br />
<a target="iframetest" href="http://www.yahoo.com">page2</a><br /><br />
<a target="iframetest" href="http://www.notpron.com">page3</a><p>&nbsp;</td><td><span style="position: absolute; left: 14; top: 242"><iframe src="iframetest" width="200" height="100" name="iframetest">Sorry, your browser doesn't support iframes.</iframe>
</span>
</td>
</p>
</body>

</html>

jscheuer1
04-05-2005, 06:44 AM
You are using a Java Applet, not JavaScript. There is a big difference. Have you taken a look at some of the JavaScripts available here to see if any would suit or come close to suiting your purpose?

micomator
04-05-2005, 12:32 PM
As you see, I don;t really know much about html. I just want to see if it is possible to make my hover buttons work with the iframe.

jscheuer1
04-05-2005, 04:07 PM
Well, then this belongs in the 'Other' forum. I usually don't get involved there too much.

a2z
04-05-2005, 08:41 PM
if you want to load something into an iframe just give the iframe an id and then aim the link at that target

ie

<iframe src="default.php" id="iframesitemainframe">enable iframes you n008 or your not a h4x0r</iframe>
<a href="secondpage.php" target="iframesitemainframe">click here to see more content</a>

micomator
04-06-2005, 11:33 AM
if you want to load something into an iframe just give the iframe an id and then aim the link at that target

ie

<iframe src="default.php" id="iframesitemainframe">enable iframes you n008 or your not a h4x0r</iframe>
<a href="secondpage.php" target="iframesitemainframe">click here to see more content</a>

Yeah I know but it doesnt seem to wo work with the hover buttons I made.

jscheuer1
04-06-2005, 04:10 PM
That's because they are Java Applets. Make them in JavaScript and you should have more luck.