The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

can some one do this script problem?

2 posters

Go down

can some one do this script problem? Empty can some one do this script problem?

Post by dukespspisos April 6th 2008, 9:20 pm

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.
avatar
dukespspisos
Forumember

Posts : 49
Reputation : 0
Language : english

Back to top Go down

can some one do this script problem? Empty Re: can some one do this script problem?

Post by Uber Lord April 7th 2008, 12:09 am

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 cant get the "> away though ill look at it. Also i can't make it so if someone has already visited sorry, i don't there is a way.




I got it

~Uber Lord


Last edited by Uber Lord on April 7th 2008, 1:00 am; edited 1 time in total
Uber Lord
Uber Lord
Forumember

Male Posts : 710
Reputation : 18
Language : English
Location : USA

http://computerworld.forumotion.com/index.htm

Back to top Go down

can some one do this script problem? Empty Re: can some one do this script problem?

Post by dukespspisos April 7th 2008, 12:59 am

thanx
avatar
dukespspisos
Forumember

Posts : 49
Reputation : 0
Language : english

Back to top Go down

can some one do this script problem? Empty Re: can some one do this script problem?

Post by Uber Lord April 7th 2008, 1:00 am

Yep
Uber Lord
Uber Lord
Forumember

Male Posts : 710
Reputation : 18
Language : English
Location : USA

http://computerworld.forumotion.com/index.htm

Back to top Go down

can some one do this script problem? Empty Re: can some one do this script problem?

Post by dukespspisos April 7th 2008, 1:01 am

ok the script does work but if i go to any forum and click bak to homepage the messages keeps coming
avatar
dukespspisos
Forumember

Posts : 49
Reputation : 0
Language : english

Back to top Go down

can some one do this script problem? Empty Re: can some one do this script problem?

Post by Uber Lord April 7th 2008, 1:03 am

As i said but i just Edited my post It Can't Be Done as far as I know.
Uber Lord
Uber Lord
Forumember

Male Posts : 710
Reputation : 18
Language : English
Location : USA

http://computerworld.forumotion.com/index.htm

Back to top Go down

can some one do this script problem? Empty Re: can some one do this script problem?

Post by dukespspisos April 7th 2008, 1:09 am

ok
avatar
dukespspisos
Forumember

Posts : 49
Reputation : 0
Language : english

Back to top Go down

can some one do this script problem? Empty Re: can some one do this script problem?

Post by Uber Lord April 8th 2008, 1:55 am

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 Wink

That is by there cookies.
To recive the message again just clear your cookies Smile

Man that was hard to creat but i got it Razz
Uber Lord
Uber Lord
Forumember

Male Posts : 710
Reputation : 18
Language : English
Location : USA

http://computerworld.forumotion.com/index.htm

Back to top Go down

can some one do this script problem? Empty Re: can some one do this script problem?

Post by dukespspisos April 8th 2008, 2:30 am

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?
avatar
dukespspisos
Forumember

Posts : 49
Reputation : 0
Language : english

Back to top Go down

can some one do this script problem? Empty Re: can some one do this script problem?

Post by Uber Lord April 8th 2008, 3:04 am

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 blackeye What the fuck ?!? can some one do this script problem? Mouais
Uber Lord
Uber Lord
Forumember

Male Posts : 710
Reputation : 18
Language : English
Location : USA

http://computerworld.forumotion.com/index.htm

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum