Forum Home
Press F1
 
Thread ID: 83202 2007-09-23 08:32:00 How to remove Popup screen from my designed website John W (523) Press F1
Post ID Timestamp Content User
594221 2007-09-23 08:32:00 Hi there

Im told theres a Popup that appears on a website I look after. Ive seen it just once, when I left the IE7 sitting on this webpage, it appeared about 10min after entering the home page.

www.cyclingotago.co.nz

BUT - I dont know how I created it, let along where to go looking for it in the code to remove it.

Im the only one with access to the Server so there is little or NO possibility of anyone else gettig in there, stiring the porridge.

Any help appreciated.

So, no that Ive done it, inadvertently of course, how do I go about Creating one, should I ever need to in the future.

Thanks

John in Mosgiel.
John W (523)
594222 2007-09-23 08:53:00 I got a pop-up instantly.

"Otago Team Selection 2007 Track Nationals".

Pop-ups are so 90's. You should get a great big dirty advertisement at the top right of your page that peels open revealing a hairy half naked fat man holding a small child when you try to scroll up the page.

It's what all the sell-outs are doing these days.
Jams (1051)
594223 2007-09-23 09:02:00 Try this: open the page in your html editor and look for the code:

<script language="JavaScript">
<!--
function FP_openNewWindow(w,h,nav,loc,sts,menu,scroll,resiz e,name,url) {//v1.0
var windowProperties=''; if(nav==false) windowProperties+='toolbar=no,'; else
windowProperties+='toolbar=yes,'; if(loc==false) windowProperties+='location=no,';
else windowProperties+='location=yes,'; if(sts==false) windowProperties+='status=no,';
else windowProperties+='status=yes,'; if(menu==false) windowProperties+='menubar=no,';
else windowProperties+='menubar=yes,'; if(scroll==false) windowProperties+='scrollbars=no,';
else windowProperties+='scrollbars=yes,'; if(resize==false) windowProperties+='resizable=no,';
else windowProperties+='resizable=yes,'; if(w!="") windowProperties+='width='+w+',';
if(h!="") windowProperties+='height='+h; if(windowProperties!="") {
if( windowProperties.charAt(windowProperties.length-1)==',')
windowProperties=windowProperties.substring(0,wind owProperties.length-1); }
window.open(url,name,windowProperties);
}
// -->
</script>... and cut it out. Make a note where you cut it from in case you need to paste it back - preferably copy it into a Notepad text document.
Greg (193)
594224 2007-09-23 09:48:00 Thanks Greg, but there are two Popups that initiate when the Mouse is clicked on them , The Presidents Blurb and Latest Ride Report, in the middle column. These are intentional. Its the "Otago Team Selection 2007 Track Nationals" I want to remove.

If I get rid of the code you suggest, will that stop the user initiated popups as well?

John.
John W (523)
594225 2007-09-23 10:34:00 If I get rid of the code you suggest, will that stop the user initiated popups as well?
Not sure and can't check right now cos the page won't load. I'll try remember to take another look in the morning.
Greg (193)
594226 2007-09-24 08:29:00 Found the problem..

Somehow IO had created a OnMouseOver to start up and Actiobscript that opened up the Popup window.

Ive Popup blocker switched On, so I never saw the problem.

This is quickly how I colcated the problem.

I searched for the name of the opened webpage, there were 4 references to it in the Code. The suspicious lines had OnMouseOver preceeding the URL, as soon as I removed those lines of code, the problem went away.

Hope this assists someone in future

:p
John W (523)
1