Thanks Beverly and I do not use any kind of WYSIWYG editor, I use Notepad or Notepad++
I used your script mentioned above to modify "forumlist_body.html" and created an html page within the following code
Code:
<!-- PHP -->
$page = basename(substr($_SERVER['PHP_SELF'],0,strrpos($_SERVER['PHP_SELF'],'.'))); // get web page and strip extension
if ($page == 'index') {
<!-- ENDPHP -->
... Your HTML/JS here ...
<!-- PHP -->
}
<!-- ENDPHP -->
The Following script is the one I used to make a pop-up per browser session:
Step 1: Insert the following into the <head> section of your page
Code:
<script>
/*
Fair well window launcher script
By JavaScript Kit ()
Over 200+ free scripts here!
*/
function openpopup(){
//configure "seeyou.htm and the window dimensions as desired
window.open("seeyou.htm","","width=300,height=338")
}
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { // if cookie exists
offset += search.length
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
function loadpopup(){
if (get_cookie('popped')==''){
openpopup()
document.cookie="popped=yes"
}
}
</script>
Step 2: Insert the following into the <body> tag itself, like this:
Code:
<body onload="loadpopup()">
But Now the problem is Pop-up Blockers are blocking all the pop-ups hence I am looking for jQuery pop-up so it may not be blocked...
Please advise...
Bookmarks