Quick Nav:  Online Store   |   Login | Register

Pre-generated JS

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
Charles Rowland
<50 Posts
Posts:39


07/04/2008 2:12 AM  

 

I replaced the generated JS at the bottom of my home.aspx and internal.aspx with the following. Since these never change, is it possible to set these using css in my skin.css file and remove this from the html? Since I never have more than one level, can I delete the extra levels from the css file? And now that I am using your menu, I assume I can delete all the SOLPARTMENU classes from any css file I find, is that correct?

 MainNav73.className += ' root-item-last';
 
 // center menu
 MainNav.firstChild.style.width  = '755px';
 MainNav.firstChild.style.margin = '0 auto';

Thanks,

Charlie

 

John Mitchell
Posts:3380


07/04/2008 7:21 AM  
Yes, you should be able to do that with CSS, in the CSS File.

You may not be able to remove the Solpart CSS from every CSS File, because it is probably also used for the Action Menus. You should be able to remove any Solpart CSS from your Skin.css file though.
Charles Rowland
<50 Posts
Posts:39


07/07/2008 7:45 PM  

Hi John,

The following does not work in Firefox, but works fine in IE:

MainNav73.className += ' root-item-last';

 

Also, the menu is not centered left to right in Firefox.

Any suggestions?

Thanks,

Charlie

Charles Rowland
<50 Posts
Posts:39


07/08/2008 3:54 PM  
Hi John,
I fixed this by changing it to:
document.getElementById('MainNav').firstChild.firstChild.className += ' firstitem';
and then adding:
#MainNav li.firstitem{background-attachment:fixed;background-position:-10 0;}
Also, setting padding for the ul got the menu to be centered in both IE and Firefox.
Thank you,

Charlie
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.



ActiveForums 3.7
Powered by: Snapsis Software