PDA

View Full Version : urgent Help!



chrisgocrazyH
09-05-2008, 10:31 AM
Okay Im using this:

<SCRIPT LANGUAGE="JavaScript">
<!-- Script courtesy of http://www.web-source.net - Your Guide to Professional Web Site Design and Development
window.location="http://www.yourdomain.com/";
// -->
</script>

and i want it to Go to the Iframe Traget called Content


IF ANYONE CAN POST A CODE WITH IT REDIRECTING TO The Iframe 'Content'

I will Give you Mod on my usr system and some rep!

Reptar
09-05-2008, 10:40 AM
Before I even help out, what do you mean by, " I will Give you Mod on my usr system and some rep!"?

chrisgocrazyH
09-05-2008, 10:50 AM
http://www.simplyhabbo.com

- Great usersystem :)

and ill rep u on here -- unless u dont want mod..

Reptar
09-05-2008, 11:04 AM
Try going to this link. I think it defines how to do it. I don't know much about PHP so. I tried. :P

http://www.transarte.net/mediawiki/index.php/Iframe

chrisgocrazyH
09-05-2008, 11:12 AM
not what i need..

So say we have the name of the iframe is content

<iframe src="home.php" name="content"></iframe>

now i need a JAVASCRIPT OR some redirect page code that would send a page to that iframe..

so like a link is:

<a href="liml.php" target="content">K;;</a>

I want it so u dont have to click it it will auto put somthin to the iframe called content
\
target="content"

Reptar
09-05-2008, 11:15 AM
You want the code to redirect to the iframe page?

chrisgocrazyH
09-05-2008, 11:25 AM
yes ;d


Edit
ill make it easyer

<META HTTP-EQUIV="refresh" CONTENT="seconds;http://simplyhabbo.com/hx/charts.php" target="content">

Thats the code that i have added "Target="content"

thats a normal Link target code but it dosent seem to work..

Baving
09-05-2008, 03:33 PM
<a onclick="javascript:window.open('http://google.co.uk','content');" href="#">Click here</a>

chrisgocrazyH
09-05-2008, 09:57 PM
im not after a LINK :P im after a redirect code that will redirect a page to content

Klydo
10-05-2008, 08:00 AM
He basically wants to set up the page so no matter which link you click it goes to the iFrame. Which means instead of putting target="content" or whatever in each link he just puts it in the <head> or within the <body> tag.

Baving
10-05-2008, 09:43 AM
Via link:


<html>
<head>
<script type="text/javascript">
function load_into_content(url) {
window.open(url,'content');
}
</script>
</head>
<body>
<a href="javascript:load_into_content('http://google.co.uk');">link</a>
</body>
</html>


Via page load:



<html>
<head>
<script type="text/javascript">
function open_content(){
window.open('http://google.co.uk','content');
}
</script>
</head>
<body onload="javascript:open_content();">
</body>
</head>

Blob
10-05-2008, 10:24 AM
Via link:


<html>
<head>
<script type="text/javascript">
function load_into_content(url) {
window.open(url,'content');
}
</script>
</head>
<body>
<a href="javascript:load_into_content('http://google.co.uk');">link</a>
</body>
</html>


Via page load:



<html>
<head>
<script type="text/javascript">
function open_content(){
window.open('http://google.co.uk','content');
}
</script>
</head>
<body onload="javascript:open_content();">
</body>
</head>


Or onload:



<html>
<head>
<script type="text/javascript">
function open_content(){
window.open('http://google.co.uk','content');
}
window.onload = open_content();
</script>
</head>
<body>
</body>
</head>

chrisgocrazyH
10-05-2008, 10:47 AM
BLOB!!! I LOVE U !!!!! (not gay way) I'VE BEEN LOOKING FOR THIS FOR AGES!!!!!

Register on my system and ill give u mod and some rep on here

Want to hide these adverts? Register an account for free!