Hi my site has a cookie on it that i would like to set to an image, i would like it if a user clicks on the close button then the cookie would be set, Other wise the cookie does not become active
Here is the code i have
If you can help that would be greatCode:<?php setcookie("defaultsearch", "true", time()+604800); ?> <?php if (isset($_COOKIE["defaultsearch"])) echo ""; else echo "<div id='icePage_SearchBoxTop_IE7DownloadControl_AddToolbar' class='iE7TBDownload'><img src='http://twitoosearch.com/images/defsearch.png' id='icePage_SearchBoxTop_IE7DownloadControl_DwldImageWrapper' usemap='#ie7_search_Map' alt='Twitoosearch bar' style='margin: 0pt; padding: 0pt;' border='0' height='250' width='1024' /><map id='ImageMap' name='ie7_search_Map'><area shape='rect' alt='Add It Now!' coords='0, 0, 972, 249' href='#' onclick='setDefaultSearch();' /><area shape='rect' alt='Add It Now!' coords='972, 0, 1023, 227' href='#' onclick='addSearch('setDefaultSearch();' /><area shape='RECT' alt='Close X' coords='972, 227, 1023, 249' href='#' onclick='closeOption();return false' /></map></div> "; ?>



Reply With Quote

Bookmarks