javascript and SEO

Discussion in 'Search Engine Optimization' started by sandrodz, Nov 24, 2007.

  1. #1
    Is this random image function SEOd?
     
    sandrodz, Nov 24, 2007 IP
  2. trichnosis

    trichnosis Prominent Member

    Messages:
    13,785
    Likes Received:
    333
    Best Answers:
    0
    Trophy Points:
    300
    #2
    search engines will ignore javascripts
     
    trichnosis, Nov 24, 2007 IP
  3. sandrodz

    sandrodz Peon

    Messages:
    1,482
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'm using this snippet to start js file: <script type="text/java_script">random_img("image1.jpg", "image2.jpg", "image3.jpg","image4.jpg");</script>

    how can I rotate images and follow SEO rules?
     
    sandrodz, Nov 24, 2007 IP
  4. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Do it server-side so that the image rotation is done before the page is sent to the browser.

    Another option would be to put all 4 images into the HTML, but then use JavaScript to "hide" all but the one currently in view (this would be seen as site functionality in this case and not hidden content).
     
    Dan Schulz, Nov 24, 2007 IP
  5. sandrodz

    sandrodz Peon

    Messages:
    1,482
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #5
    did it in a neat way :) with php. thx for help.
     
    sandrodz, Nov 24, 2007 IP