Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Web Design - Bring page to front

Thread Tools
 
Search this Thread
 
Old Jan 27, 2002 | 06:02 PM
  #1  
Avi's Avatar
Avi
Thread Starter
Scooby Regular
 
Joined: Apr 2001
Posts: 5,084
Likes: 0
From: Manchester
Post

Is there anyway I can bring my main page to the front automatically, so it is over the top of the banner ads?

as demonstrated here http://www.andyatherton.co.uk

Using java or similar?

Thanks

Andy
Reply
Old Jan 27, 2002 | 07:08 PM
  #2  
stevem2k's Avatar
stevem2k
Scooby Regular
 
Joined: Sep 2001
Posts: 4,670
Likes: 0
From: Kingston ( Surrey, not Jamaica )
Post

I think

<body onblur="self.focus();">

in the main page will do it.

Steve
Reply
Old Jan 27, 2002 | 07:39 PM
  #3  
Avi's Avatar
Avi
Thread Starter
Scooby Regular
 
Joined: Apr 2001
Posts: 5,084
Likes: 0
From: Manchester
Post

Tried that one before, couldn't get it to work.

I have a DHTML Script that maximizes on entry, and I'm sure I've seen one that brings to front, but i cant find it

thanks anyway

Andy
Reply
Old Jan 27, 2002 | 08:32 PM
  #4  
legacyPete's Avatar
legacyPete
Scooby Regular
 
Joined: Dec 2001
Posts: 202
Likes: 0
Post

Easy, just add this javascript to the head of your page:

<script language="javascript">
<!--

if(top != self) {
top.location = 'http://www.yoursite.com/';
}

//-->
</script>

Should do the job

[Edited by legacyPete - 1/27/2002 8:36:09 PM]
Reply
Old Jan 27, 2002 | 09:10 PM
  #5  
Avi's Avatar
Avi
Thread Starter
Scooby Regular
 
Joined: Apr 2001
Posts: 5,084
Likes: 0
From: Manchester
Talking

Cheers Pete, that has got rid of the banner at the top, but have you any idea how i can remove the popup window, or bring my main window in front of the popup?

Ta

Andy
Reply
Old Jan 27, 2002 | 10:06 PM
  #6  
legacyPete's Avatar
legacyPete
Scooby Regular
 
Joined: Dec 2001
Posts: 202
Likes: 0
Post

I doubt you will be able to stop the popup window, but you can add this to the body tag to bring your page to the front:

onload="self.focus()"
Reply
Old Jan 27, 2002 | 10:14 PM
  #7  
Avi's Avatar
Avi
Thread Starter
Scooby Regular
 
Joined: Apr 2001
Posts: 5,084
Likes: 0
From: Manchester
Post

Thanks
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
JimBowen
ICE
5
Jul 2, 2023 01:54 PM
Rbon91
ScoobyNet General
49
Nov 21, 2018 03:23 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
Dec 28, 2015 11:07 PM
shorty87
Full Cars Breaking For Spares
19
Dec 22, 2015 11:59 AM




All times are GMT +1. The time now is 02:52 AM.