ScoobyNet.com - Subaru Enthusiast Forum

ScoobyNet.com - Subaru Enthusiast Forum (https://www.scoobynet.com/)
-   Computer & Technology Related (https://www.scoobynet.com/computer-and-technology-related-34/)
-   -   Web Design - Bring page to front (https://www.scoobynet.com/computer-and-technology-related-34/68003-web-design-bring-page-to-front.html)

Avi 27 January 2002 06:02 PM

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

stevem2k 27 January 2002 07:08 PM

I think

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

in the main page will do it.

Steve

Avi 27 January 2002 07:39 PM

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

legacyPete 27 January 2002 08:32 PM

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]

Avi 27 January 2002 09:10 PM

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

legacyPete 27 January 2002 10:06 PM

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()"

Avi 27 January 2002 10:14 PM

Thanks :D


All times are GMT +1. The time now is 02:42 PM.


© 2024 MH Sub I, LLC dba Internet Brands