javascript rollover not working

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
izzysanime

javascript rollover not working

Post by izzysanime »

hi, i have a javascript rollover.  On previous suggestion from the forum, i made the .js file externally, and linked it into the page.  Personally, i have never needed to use an external javascript file, so i dont really know what could go wrong.  All i did was copy the js code that i had up in the header, and placed it into a blank text file (using subEthaEdit).  saved it as rollover.js.  placed the code to link to the js file in the template.  It is not a full url link, but i did try that also, as far as i can tell it sees the js file, because i pasted the url in the browsers url, it loaded the code.  im not sure if there are other ways to verify it.  any suggestions?

thanks
Josh
the Js code - ./uploads/java/rollover.js
or http://wareriver.com/CMS/cmsmadesimple/ ... ollover.js
izzysanime

Re: javascript rollover not working

Post by izzysanime »

hmm, i just saw the post for litteral tags in JS.  ill try that
izzysanime

Re: javascript rollover not working

Post by izzysanime »

hmm, well then i read on that i dont need {literal} if im doing an ext js file.  i still tried it, nothing changed.  help! ^_^
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: javascript rollover not working

Post by Dr.CSS »

take these out of the .js file...

top
// JavaScript Document




put this in your header.....



BTW looks like you got the menu working..

  mark
izzysanime

Re: javascript rollover not working

Post by izzysanime »

Awesome!, that was it!.  this whole time.  I always thought one was supposed to tell what kind of doc it was at the beginning, just like in HTML.  but guess not. 

And yes, i got the CSS menu working, except for that little line stretching across the top of the menu to the edge of the screen.  ill try dealing with that later.  Im surprised you remember me.  ^_^

Thanks
Josh
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: javascript rollover not working

Post by Dr.CSS »

never forget a site  ;)

try deleting this...

#menuwrapper {

        background-color: #ECECEC;
        border-bottom: 1px solid #C0C0C0;

        width: 100%;
        }

you need none of the those..

  mark
Locked

Return to “CMSMS Core”