icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old July 3rd, 2005, 10:08 AM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Mar 2005
7 posts
Gave thanks: 0
Thanked 0 times
Banner on top of page

Hey i got a question, on my site there will be tons of links soon (to all kinds of websites of companies).
but i want that all links that get opened, have my banner on top of the page.

How could i do this, without a lot of work.
i was thinking of something like this
window.location="'+eval("lnk")+'"

And then open the link with *.htm?lnk=www.knoore.com
But this doesnt work.
Knoore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 3rd, 2005, 5:34 PM   #2 (permalink)
Skittles
Super #1
 
DewKnight's Avatar
 
Joined in Aug 2004
Lives in a space ship
Hosted on dedi
6,815 posts
Gave thanks: 101
Thanked 199 times
I know you could easily do it with frames, how to do it with javascript I would not be sure of.
__________________
Mountain Dew Knight
People should not be afraid of their governments. Governments should be afraid of their people.
DewKnight is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 3rd, 2005, 5:38 PM   #3 (permalink)
Registered User
Fresh Surpasser
 
Joined in Mar 2005
7 posts
Gave thanks: 0
Thanked 0 times
With frames, i cant make a banner wich rotates itself each 20 seconds.
and also have it on every page it opens, unless i make 999999 files


therefor i got this idea.

Already got the idea working
now i need to put it in frames, so i need to use a different term in PHP, other then Header()

http://www.knoore.com/test/files/lin...asshosting.com

Last edited by Knoore; July 3rd, 2005 at 5:40 PM..
Knoore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 3rd, 2005, 3:09 PM   #4 (permalink)
DemonicAngel
Super #1
 
twirp's Avatar
 
Joined in Aug 2004
Lives in Wherever The World Takes Me
Hosted on Pass76
1,847 posts
Gave thanks: 28
Thanked 35 times
PHP Code:
<?php
if(isset($x)){
?>
<html>
<head>
<title>Viewing: $x</title>
</head>
<frameset rows="60,*"  frameborder="0" >
  <frame name="top" scrolling="no" noresize src="http://twirp.net/ads/ad.html" >
  <frame name="pre" src="http://<?php echo"$x"?>">
</frameset>
<body>
</body>
<noframes>
<a href="http://<?php echo"$x"?>">Browser does not support frames, click here to see site.</a>
</noframes>
</html>
<?php
}else{
header("Location: http://twirp.net");
}
?>
Change twirp.net to whatever your site is...

The thing would be:
http://yoursite.com/link.php?x=surpasshosting.com
__________________
You wear Vans so high school kids will think that you can skate. He wears Vans because he can skate. TwiRp wears Vans because they were on sale. Pass76 wants Vans.
twirp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 3rd, 2005, 4:33 PM   #5 (permalink)
Registered User
Fresh Surpasser
 
Joined in Mar 2005
7 posts
Gave thanks: 0
Thanked 0 times
Thanx
<title>Viewing: $x</title>
Dont i need a <?php echo $x ?> here?
Knoore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 4th, 2005, 8:47 AM   #6 (permalink)
L'Awesome Advocate
Super #1
 
Ancyru's Avatar
 
Joined in May 2004
Lives in .au
Hosted on Mango
2,423 posts
Gave thanks: 1
Thanked 5 times
Yes you would.

PHP Code:
<title>Viewing: <?php echo $x?></title>
__________________
When I get sad, I stop being sad, and be AWESOME instead. True story.
Ancyru is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On