Javascript Phone Swap

Posted by Batfan on Stack Overflow See other posts from Stack Overflow or by Batfan
Published on 2010-03-16T15:49:03Z Indexed on 2010/03/16 16:31 UTC
Read the original article Hit count: 191

Filed under:
|
|
|

I've been trying to find a way to do this but, have not found many resources that specifically relate to this situation.

I need a javascript (can make use of Jquery if need be) to swap phone numbers on a site.

  • 2 numbers would be specified. One would show on the site by default.

  • The script needs to be able to create a cookie and do this by recognizing a value in the URL string.


For Example: http://www.site.com/index.html?value=

'?value=' would be the value.


This URL (with the additional variable) would bring the user to the same site but, the variable in the string would set the cookie and display a different number. The default number would not be displayed again until the cookies were removed.

Due to the situation with my server, I cannot make use of PHP ( I know, that would make things alot easier :P )

Any help would be greatly appreciated.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript