Results 1 to 5 of 5

Thread: Certain Part of webpage change upon refresh?

  1. #1
    Join Date
    Jul 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Certain Part of webpage change upon refresh?

    Hello,

    Thanks for taking the time to look at my question. What I need to do for a upcoming project is making certain parts of a webpage show up differently after a refresh of the page.

    For example, I am going to have a "physician favorites" section of the page with 4 profile pictures, and quotes from physicians. After the page is re-loaded I need to have 4 different pictures and quotes come up.

    Any assistance or advice with this would be greatly appreciated.

    Thank you,
    Steve

  2. #2
    Join Date
    Jun 2008
    Posts
    589
    Thanks
    13
    Thanked 54 Times in 54 Posts
    Blog Entries
    1

    Default

    Sure. I assume you understand HTML and JavaScript. Just use the onload event so that when the page loads, it puts different images on the site that you have. By the way, please post your script so that I can actually make some code for you.

    -magicyte

  3. #3
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    I completely get what you want, but not completely. Do you want a random "pattern" every time the page loads, or do you want it that the first time the page loads you get "a", and then the second time you get "b". The second way I mentioned would require cookies. So please specify witch one you want.
    Jeremy | jfein.net

  4. #4
    Join Date
    Jul 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Nile View Post
    I completely get what you want, but not completely. Do you want a random "pattern" every time the page loads, or do you want it that the first time the page loads you get "a", and then the second time you get "b". The second way I mentioned would require cookies. So please specify witch one you want.

    Hello,

    Thank you for your reply. Basically I would like to have "a" when you load the page, and upon refresh the same section of the site would then display "b".

    Any information would be greatly appreciated.

    Thanks,
    Steve

  5. #5
    Join Date
    Jan 2007
    Posts
    51
    Thanks
    2
    Thanked 3 Times in 3 Posts

    Default

    You could always use a random seed to mix up your database results set provided these Dr.'s are stored in a db. But it would be random, you'll get dupes on occasion depending on the num of records.

    Using a cookie will allow you to know where you've been and where you want to go with moving through your data set.

    What application engine are you using?

    BN

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •