SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2004
    Location
    edmonton, canada
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    class or id selectors with javascript?

    Having designed/styled a set of three page templates (with considerable guidance from kind members of this group ) for a new site, I am faced with a new wrinkle.

    Each of these pages shows a limited range of products; the images are to be linked to a much larger existing order-handling site built in asp/tables. I am advised that because we intend to change the images and links on the new site periodically, it would be most efficient to identify the images and link them using javascript. The person who I asked to do the javascripting now insists that each of the templates needs to be re-written using CSS classes rather than the DIV ID's already created.

    Say it ain't so...
    and if it is, please 'splain me why.
    I hope I have provided enough information here to make myself clear.
    Thank you...
    Cam

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,784
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    Hi,

    Sounds more like a question for the javascript forum but I can't see why the images can't be identified with id's as they can all be referenced by id without problem AFAIK.

    (Perhaps you should have asked your coder for the reasons why )

    Paul


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
  •