SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jun 2005
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Update: Javascript random image with assigned/accompanying quote

    Hello,

    I looked all over the forums here but couldn't find anything on this:

    I'd like to have a js random image (1 out of 4) load each time a user visits my page. Along with that image, I'd like a specific quote and sub heading (text) to appear -the quote can be text or another graphic.

    In other words, if random image '1' is loaded, 'quote 1' (text or another graphic) and 'sub head 1' (html text) is loaded, if random image '2' is loaded, 'quote 2' and 'sub head 2' (html text) is loaded, and so on...

    Is this possible? I'm no js expert... if it's possible, how do I do it?

    Many thanks in advance,

    Cheers,

    jon
    Last edited by jonpb; Jul 15, 2006 at 07:52. Reason: UPDATED

  2. #2
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I have done this, but with PHP, not javascript. If you're interested, I can show you.

  3. #3
    SitePoint Member
    Join Date
    Jun 2005
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    please do. Thank You!!

  4. #4
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I'll just link you to it because it's quite commented out anyway and I added a few more. You can see it in action here - it's the column of photos on the right. The script for that column is this. If you have any questions, just shoot away.
    Last edited by Raffles; Jul 16, 2006 at 03:57.

  5. #5
    SitePoint Member
    Join Date
    Jun 2005
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Many Thanks. I appreciate it!!


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
  •