Hey all.
NB.I'm a begginer at Javascript so please try and explain everything. Thanks.
I would really apreciate it if someone could help me cange the source of an iFrame depending on a var. in the URL.
Heres my code...
A sample:
If the URL is... blah.com?q=login
Then the iFrame src. will be login.html
and so on.
Thanks in advance, I'm not sure if i explained myself properly.
NB.I'm a begginer at Javascript so please try and explain everything. Thanks.
I would really apreciate it if someone could help me cange the source of an iFrame depending on a var. in the URL.
Heres my code...
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/strict.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml"[/URL] xml:lang="en" lang="en">
<head>
<title>Scab Auctions - Home</title>
<link rel="stylesheet" type="text/css" href="externalcss.css" />
</head>
<body>
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="[URL unfurl="true"]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"[/URL]
WIDTH="100%" HEIGHT="236" id="top" ALIGN="">
<PARAM NAME=movie VALUE="dowtop2.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="dowtop2.swf" quality=high bgcolor=#000000 WIDTH="100%" HEIGHT="236" NAME="top" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="[URL unfurl="true"]http://www.macromedia.com/go/getflashplayer"></EMBED>[/URL]
</OBJECT>
<table>
<tr>
<td>
<iframe src="home.html" name="content" width="100%" height="350" scrolling="auto" frameborder="0">
[Your user agent does not support frames or is currently configured
not to display frames.
</iframe>
</td>
</tr>
</table>
</body>
</html>
A sample:
If the URL is... blah.com?q=login
Then the iFrame src. will be login.html
and so on.
Thanks in advance, I'm not sure if i explained myself properly.