I need to use a Script without access to the <HEAD> tag

Discussion in 'JavaScript' started by bluey_grey, Dec 12, 2009.

  1. #1
    I work as a website content editor. Basically, I have access to a system (called KS) that allows me only to edit the main section of the website-underneath the <BODY> (without access to it as well).
    I want to create a rollover image script. One that changes a picture at the side of the page, as I move the mouse on several text links on the other side.

    Is there a way to do that without accessing the <HEAD> or <BODY> tag? I looked into creating a .js file, but then found out the <SCRIPT> line also has to be put in the <HEAD>.

    Also keep in mind that any non-photo files, I need to upload to an external server (I opened a Google-site)

    Thanks a bunch!
     
    bluey_grey, Dec 12, 2009 IP
  2. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #2
    the script tag does not need to be put in the head. in fact, all modern js performance articles advise js is put at the very BOTTOM of the document before the </body> tag as it vastly improves page load times. it's true that putting in the head was previously the best practice though.
     
    dimitar christoff, Dec 13, 2009 IP