SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: random images

  1. #1
    SitePoint Member
    Join Date
    May 2005
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    random images

    i have seen a forum where the backgound images
    changes each time you visit.
    the images are rotated...is this done by CSS or is it some other script
    embeded in CSS?

    is it possible?
    |vb-skins.com| Quality Vb skins at affordable Price

  2. #2
    Caveat surfer Buddy Bradley's Avatar
    Join Date
    May 2003
    Location
    Cambridge, UK
    Posts
    2,366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It will be done with either a server-side script (ASP, PHP) or Javascript:
    Code:
    <body style="background-image: url(<?php echo $random_bg; ?>);">

  3. #3
    SitePoint Addict
    Join Date
    Jun 2004
    Location
    UK, London
    Posts
    312
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ^ this

    CSS is describing how things look, it is not coding, it does not allow for logical comparisons or calculations.
    Chris Heilmann
    Blog | Articles | Binaries

  4. #4
    ********* Streaker Lister14's Avatar
    Join Date
    Jun 2002
    Location
    C:\Documents and Settings\Desktop\Recycle Bin
    Posts
    677
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Buddy Bradley
    It will be done with either a server-side script (ASP, PHP) or Javascript:
    Code:
    <body style="background-image: url(<?php echo $random_bg; ?>);">
    yes, or you might want to pull in a randomly selected stylesheet... but yea, ask this question in the php/asp forum
    roy.lu
    C:\DOS... C:\DOS\RUN... RUN\DOS\RUN...!


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
  •