Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Close Popup on specific page(s)?


 
Prev Previous Post   Next Post Next
  #1  
Old Mar 29, 2012, 07:53 AM
twb716
 
33 posts · Jun 2010
Close Popup on specific page(s)?

I have "borrowed" the following code to open a popup window for an audio player ONLY on the front page:


========
<?php if (is_front_page()) { ?>

<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=243,height=422,top=175,scrollbars=no');
return false;
}
//-->
</SCRIPT>

</head>

<body onLoad="popup('http://www.xxx.com/rms/wp-content/uploads/rave/index.html', 'ad')">
</body>

<?php } ?>

========

I have inserted it in the loop. My question:

How to I get the same popup window to close on specific pages? Any information will be greatly appreciated. Thanks.

TB
 

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] post-specific header image w/ css insert (page-specific ones work, but not o viewdesigninc Header configuration & styling 10 Oct 1, 2012 03:43 PM
How to close space? joe hark Center area post/pages 4 Oct 13, 2010 01:08 AM


All times are GMT -6. The time now is 08:12 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.