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 27 January 2002, 06:02 PM
  #1  
Avi
Scooby Regular
Thread Starter
 
Avi's Avatar
 
Join Date: Apr 2001
Location: Manchester
Posts: 5,084
Likes: 0
Received 0 Likes on 0 Posts
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
Old 27 January 2002, 07:08 PM
  #2  
stevem2k
Scooby Regular
 
stevem2k's Avatar
 
Join Date: Sep 2001
Location: Kingston ( Surrey, not Jamaica )
Posts: 4,670
Likes: 0
Received 0 Likes on 0 Posts
Post

I think

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

in the main page will do it.

Steve
Old 27 January 2002, 07:39 PM
  #3  
Avi
Scooby Regular
Thread Starter
 
Avi's Avatar
 
Join Date: Apr 2001
Location: Manchester
Posts: 5,084
Likes: 0
Received 0 Likes on 0 Posts
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
Old 27 January 2002, 08:32 PM
  #4  
legacyPete
Scooby Regular
 
legacyPete's Avatar
 
Join Date: Dec 2001
Posts: 202
Likes: 0
Received 0 Likes on 0 Posts
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]
Old 27 January 2002, 09:10 PM
  #5  
Avi
Scooby Regular
Thread Starter
 
Avi's Avatar
 
Join Date: Apr 2001
Location: Manchester
Posts: 5,084
Likes: 0
Received 0 Likes on 0 Posts
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
Old 27 January 2002, 10:06 PM
  #6  
legacyPete
Scooby Regular
 
legacyPete's Avatar
 
Join Date: Dec 2001
Posts: 202
Likes: 0
Received 0 Likes on 0 Posts
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()"
Old 27 January 2002, 10:14 PM
  #7  
Avi
Scooby Regular
Thread Starter
 
Avi's Avatar
 
Join Date: Apr 2001
Location: Manchester
Posts: 5,084
Likes: 0
Received 0 Likes on 0 Posts
Post

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



Quick Reply: Web Design - Bring page to front



All times are GMT +1. The time now is 11:30 AM.