Results 1 to 3 of 3

Thread: Ajax Rotate in CSS too?

  1. #1
    Join Date
    Jun 2007
    Location
    Amsterdam
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ajax Rotate in CSS too?

    Hi all,

    Considering the following script in the DHTML/Jscript part of DD:

    http://www.dynamicdrive.com/dynamici...ajaxrotate.htm

    Would anyone happen to know whether this is also available in CSS? The script above could work for my next project, where almost each day I have to add content to my website. However, the Ajax-script isn't that clear as to what it'll do when a month has 31 days. And besides that, I'm in love with CSS anyway so if this exists in CSS, I'd be happy if someone would point me out, where to stroll to...

    Thanks in advance,
    Michelle A. Kusters
    Amsterdam

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Are you asking how to simulate the functionality of this script using CSS? Unfortunately that's not possible. CSS is for styling of elements on your page only, nothing beyond that.

    However, the Ajax-script isn't that clear as to what it'll do when a month has 31 days.
    The script does handle months with 31 days. When you define your list of files to show daily, just go up to 31 files:

    Code:
    var includefiles=["ajaxfiles/file.htm", "ajaxfiles/file2.htm", "ajaxfiles/file3.htm", "ajaxfiles/file4.htm", "ajaxfiles/file5.htm", "ajaxfiles/file6.htm", "ajaxfiles/file7.htm", .....]

  3. #3
    Join Date
    Jun 2007
    Location
    Amsterdam
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Talking

    The script does handle months with 31 days. When you define your list of files to show daily, just go up to 31 files:

    Code:
    var includefiles=["ajaxfiles/file.htm", "ajaxfiles/file2.htm", "ajaxfiles/file3.htm", "ajaxfiles/file4.htm", "ajaxfiles/file5.htm", "ajaxfiles/file6.htm", "ajaxfiles/file7.htm", .....]
    @DDAdmin: You are right about the first thing, but then again, I have seen people doing some quite amazing things with CSS

    As to your 2nd answer: you seem to confirm what I thought but wasn't sure of: just use 31 days and I assume that this also applies to leap years. Thanks alot.

    Michelle
    A'dam

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
  •