can some one do this script problem?
2 posters
Page 1 of 1
can some one do this script problem?
hi guys i need a script for popup messages.
the script should popup saying please vote for us. and ok button to close.
the popup should only showup once on my homepage.
if they close my site and visit again they should see it again, but not if they are alredy on my site and go back to homepage.
the script should popup saying please vote for us. and ok button to close.
the popup should only showup once on my homepage.
if they close my site and visit again they should see it again, but not if they are alredy on my site and go back to homepage.
dukespspisos- Forumember
- Posts : 49
Reputation : 0
Language : english
Re: can some one do this script problem?
- Code:
<html><head><script language="javascript" type="text/javascript"> alert("Please Vote For Us ")</script></head><body><h1> <script language="javascript" </script></h1></body></html><font face="Tahoma"
I got it
~Uber Lord
Last edited by Uber Lord on April 7th 2008, 1:00 am; edited 1 time in total
dukespspisos- Forumember
- Posts : 49
Reputation : 0
Language : english
Re: can some one do this script problem?
ok the script does work but if i go to any forum and click bak to homepage the messages keeps coming
dukespspisos- Forumember
- Posts : 49
Reputation : 0
Language : english
Re: can some one do this script problem?
As i said but i just Edited my post It Can't Be Done as far as I know.
dukespspisos- Forumember
- Posts : 49
Reputation : 0
Language : english
Re: can some one do this script problem?
- Code:
<script>
var alertmessage="Please Vote"
//Alert only once per browser session (0=no, 1=yes)
var once_per_session=1
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 alertornot(){
if (get_cookie('alerted')==''){
loadalert()
document·cookie="alerted=yes"
}
}
function loadalert(){
alert(alertmessage)
}
if (once_per_session==0)
loadalert()
else
alertornot()
</script>
I got it
That is by there cookies.
To recive the message again just clear your cookies
Man that was hard to creat but i got it
Re: can some one do this script problem?
thanx but hey can u make me this script
when visiting my site a pop up comes with saying please click Ok to vote or Cancel to continue
so if they press ok a new window open with my voting link ( http://www.gamesites200.com/psp/in.php?id=2185 )
and if they press cancel popup closes
and same with this script can u make it show once only?
until they close my site and come back?
when visiting my site a pop up comes with saying please click Ok to vote or Cancel to continue
so if they press ok a new window open with my voting link ( http://www.gamesites200.com/psp/in.php?id=2185 )
and if they press cancel popup closes
and same with this script can u make it show once only?
until they close my site and come back?
dukespspisos- Forumember
- Posts : 49
Reputation : 0
Language : english
Re: can some one do this script problem?
- Code:
<script>
//specify message to alert
var alertmessage="Please Vote! \n <a href="http://www.gamesites200.com/psp/in.php?id=2185" class="postlink" target="_blank">Vote Here</a>"
///No editing required beyond here/////
//Alert only once per browser session (0=no, 1=yes)
var once_per_session=1
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 alertornot(){
if (get_cookie('alerted')==''){
loadalert()
document·cookie="alerted=yes"
}
}
function loadalert(){
alert(alertmessage)
}
if (once_per_session==0)
loadalert()
else
alertornot()
</script>
Thats as close as i can get it
Similar topics
» Problem with a chatbox I've added - script problem?
» Script Problem
» Sincron Script problem
» Script Problem
» Log In Script Problem
» Script Problem
» Sincron Script problem
» Script Problem
» Log In Script Problem
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum