forces users to different pages?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Geoff Cox

    forces users to different pages?

    Hello

    Say I have a welcome page and 2 other pages, a.htm and b.htm.

    How can use Javascript to guide visitors, alternately to a and to b?

    Cheers

    Geoff
  • Evertjan.

    #2
    Re: forces users to different pages?

    Geoff Cox wrote on 21 mrt 2008 in comp.lang.javas cript:
    Say I have a welcome page and 2 other pages, a.htm and b.htm.
    >
    How can use Javascript to guide visitors, alternately to a and to b?
    alternating by visitor by using serverside Javascript.

    =========

    An ad random guiding can be done with clientside javascript:

    <a href = 'noJS.html'
    onclick = 'location.href = (Math.random()< .5)?"a.html":"b .html"'
    >nextpage</a>
    not tested

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    • Geoff Cox

      #3
      Re: forces users to different pages?

      On 21 Mar 2008 09:11:31 GMT, "Evertjan."
      <exjxw.hannivoo rt@interxnl.net wrote:
      >Geoff Cox wrote on 21 mrt 2008 in comp.lang.javas cript:
      >
      >Say I have a welcome page and 2 other pages, a.htm and b.htm.
      >>
      >How can use Javascript to guide visitors, alternately to a and to b?
      >
      >alternating by visitor by using serverside Javascript.
      >
      >=========
      >
      >An ad random guiding can be done with clientside javascript:
      >
      ><a href = 'noJS.html'
      >onclick = 'location.href = (Math.random()< .5)?"a.html":"b .html"'
      >>nextpage</a>
      >
      >not tested
      thanks Evertjan

      Cheers

      Geoff

      Comment

      Working...