johnmarsella Posted March 23, 2009 Share Posted March 23, 2009 Hello My site uses javascript for a sliding menu (the one I got help with randomizing the other day!) and I want to alert first-time visitors that they should allow their browser to allow the script content. Should I use a pop-up to do this or perhaps have PHP use the if (isset($_COOKIE... thing to determine whether or not to display a little <div> at the top??? <?php if(isset($_COOKIE['flyingsheep_peanutbutter-chocolate-chip'])){ //render page as is } else { $year = 60 * 365 * 24 * 60 + time(); setcookie('flyingsheep_peanutbutter-chocolate-chip', true, $year); //do something here } ?> Thanks again y'all! Link to comment https://forums.phpfreaks.com/topic/150640-1st-time-visitor-to-site-to-get-a-pop-up-window/ Share on other sites More sharing options...
Yesideez Posted March 23, 2009 Share Posted March 23, 2009 Many people don't like pop-ups. Just some simple text somewhere on the page somewhere stating this should be enough. Link to comment https://forums.phpfreaks.com/topic/150640-1st-time-visitor-to-site-to-get-a-pop-up-window/#findComment-791377 Share on other sites More sharing options...
johnmarsella Posted March 23, 2009 Author Share Posted March 23, 2009 Yeah, I hear ya on pop-ups. I guess I should give people credit that they'll understand that my site isn't going to give their computer bad script-mojo. Link to comment https://forums.phpfreaks.com/topic/150640-1st-time-visitor-to-site-to-get-a-pop-up-window/#findComment-791388 Share on other sites More sharing options...
Lodius2000 Posted March 23, 2009 Share Posted March 23, 2009 better yet make a page that doesnt use the sliding popup, then have a landing page that allows them to choose, similar to the old flash/no flash pages Link to comment https://forums.phpfreaks.com/topic/150640-1st-time-visitor-to-site-to-get-a-pop-up-window/#findComment-791451 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.