Denne menu ser ud som jeg vil have den i IE, men i FF kollapser
venstre menu ved scroll + top menu floater
Jeg er absolut ikke nogen java-haj - er der nogen der kan hjælpe
mig?
Siden kan ses her
http://www.squiggyclassicinline.com/
Her er scriptet jeg bruger til at kontrollere menuen
På forhånd mange tak for hjælpen/Birgit
/******************* MENU NUMBER 1 left side
**********************************/
/***
This is the menu creation code - place it right after you body
tag
Feel free to add this to a stand-alone js file and link it to
your page.
**/
//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument:
menuname
//Menu properties
oCMenu.pxBetween=5
oCMenu.fromLeft=20
oCMenu.fromTop=280
oCMenu.rows=0
oCMenu.menuPlacement="0"
oCMenu.offlineRoot="file:///C|/Documents and Settings/BHF/My
Documents/xBirgit/www/squiggyclassicinline/"
oCMenu.onlineRoot=""
oCMenu.resizeCheck=1
oCMenu.wait=1000
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0
//Background bar properties
oCMenu.useBar=1
oCMenu.barWidth="menu"
oCMenu.barHeight="menu"
oCMenu.barClass="clBar"
oCMenu.barX="menu"
oCMenu.barY="menu"
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=""
//Level properties - ALL properties have to be spesified in level
0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=120
oCMenu.level[0].height=20
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=0
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass=0
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=1
oCMenu.level[0].align="right"
//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to spesify the
properties you want different from LEVEL[0] - If you want all
items to look the same just remove this
//oCMenu.level[1]=new cm_makeLevel() //Add this for each new
level (adding one to the number)
//oCMenu.level[1].width=oCMenu.level[0].width+30
//oCMenu.level[1].height=20
//oCMenu.level[1].regClass="clLevel1"
//oCMenu.level[1].overClass="clLevel1over"
//oCMenu.level[1].style=""
//oCMenu.level[1].align="right"
//oCMenu.level[1].offsetX=0
//oCMenu.level[1].offsetY=0
//oCMenu.level[1].borderClass="clLevel1border"
//oCMenu.level[1].borderX=1
//oCMenu.level[1].borderY=1
//oCMenu.level[1].rows=0
//oCMenu.level[1].align="bottom"
/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width,
height, regImage, overImage, regClass, overClass , align, rows,
nolink, onclick, onmouseover, onmouseout)
*************************************/
oCMenu.makeMenu('top0','','Accomodations','
http://www.squiggyclas
sicinline.com/sidebar/accomodation.html')
//oCMenu.makeMenu('sub00','top0','Map - Airport to
Hotel','
http://www.squiggyclassicinline.com/sidebar/airport-to-ho
telmap.html')
//oCMenu.makeMenu('sub001','sub00','- New DHTML API
released','','',180,0)
//oCMenu.makeMenu('sub002','sub00','- Explorer 7 is
out','','',180,0)
//oCMenu.makeMenu('sub003','sub00','- Opera 6 supports
innerHTML','','',180,0)
//oCMenu.makeMenu('sub01','top0','News
archive','/news/archive.asp')
oCMenu.makeMenu('top1','','Sponsors','
http://www.squiggyclassicin
line.com/sidebar/sponsors.html')
//oCMenu.makeMenu('sub10','top1','kk','
http://')
//oCMenu.makeMenu('sub11','top1','kk','
http://')
//oCMenu.makeMenu('sub12','top1','kk','
http://')
oCMenu.makeMenu('top2','','News','
http://www.squiggyclassicinline
..com/sidebar/news.html')
//oCMenu.makeMenu('sub210','sub21','New
tutorials','/tutorials/index.asp')
//oCMenu.makeMenu('sub211','sub21','Tutorials
archive','/tutorials/archive.asp')
//oCMenu.makeMenu('sub22','top2','Other
articles','/articles/index.asp')
//oCMenu.makeMenu('sub220','sub22','New
articles','/articles/index.asp?show=new')
//oCMenu.makeMenu('sub221','sub22','Article
archive','/articles/archive.asp')
oCMenu.makeMenu('top3','','FAQ','
http://www.squiggyclassicinline.
com/sidebar/FAQ.html')
//oCMenu.makeMenu('sub30','top3','kk','
http://')
//oCMenu.makeMenu('sub31','top3','kk','
http://')
//oCMenu.makeMenu('sub32','top3','Crossbrowser','/forums/forum.a
sp?FORUM_ID=3&CAT_ID=1&Forum_Title=Crossbrowser+DHTML')
///oCMenu.makeMenu('sub33','top3','CoolMenus','/forums/forum.asp
?FORUM_ID=2&CAT_ID=1&Forum_Title=CoolMenus')
//oCMenu.makeMenu('sub34','top3','dhtmlcentral.com','/forums/for
um.asp?FORUM_ID=5&CAT_ID=1&Forum_Title=dhtmlcentral%2Ecom')
//oCMenu.makeMenu('sub35','top3','Cool
sites','/forums/forum.asp?FORUM_ID=1&CAT_ID=1&Forum_Title=Cool+si
tes')
oCMenu.makeMenu('top4','','Race
Facts','
http://www.squiggyclassicinline.com/sidebar/racefacts.htm
l')
//oCMenu.makeMenu('sub50','top5','kk','
http://')
//oCMenu.makeMenu('sub51','top5','kk','
http://')
//oCMenu.makeMenu('sub52','top5','kk','
http://')
oCMenu.makeMenu('top5','','Photo
Gallery','
http://www.squiggyclassicinline.com/sidebar/photogaller
y.html')
//oCMenu.makeMenu('sub10','top1','New
scripts','/scripts/index.asp?show=new')
//oCMenu.makeMenu('sub11','top1','All
scripts','/scripts/index.asp?show=all')
//oCMenu.makeMenu('sub12','top1','Popular
scripts','/scripts/index.asp?show=pop')
oCMenu.makeMenu('top6','','Survey','
http://www.squiggyclassicinli
ne.com/sidebar/survey.html')
//oCMenu.makeMenu('sub10','top1','New
scripts','/scripts/index.asp?show=new')
//oCMenu.makeMenu('sub11','top1','All
scripts','/scripts/index.asp?show=all')
//oCMenu.makeMenu('sub12','top1','Popular
scripts','/scripts/index.asp?show=pop')
oCMenu.makeMenu('top7','','Weather','
http://www.squiggyclassicinl
ine.com/sidebar/weather.html')
//oCMenu.makeMenu('sub10','top1','New
scripts','/scripts/index.asp?show=new')
//oCMenu.makeMenu('sub11','top1','All
scripts','/scripts/index.asp?show=all')
//oCMenu.makeMenu('sub12','top1','Popular
scripts','/scripts/index.asp?show=pop')
oCMenu.makeMenu('top8','','Contact
us','
http://www.squiggyclassicinline.com/sidebar/contact.html')
//oCMenu.makeMenu('sub10','top1','New
scripts','/scripts/index.asp?show=new')
//oCMenu.makeMenu('sub11','top1','All
scripts','/scripts/index.asp?show=all')
//oCMenu.makeMenu('sub12','top1','Popular
scripts','/scripts/index.asp?show=pop')
//Leave this line - it constructs the menu
oCMenu.construct()
/******************* MENU NUMBER 2 top menu
**********************************/
/***
This is the menu creation code - place it right after you body
tag
Feel free to add this to a stand-alone js file and link it to
your page.
**/
//Menu object creation
oCMenu2=new makeCM("oCMenu2") //Making the menu object. Argument:
menuname
//Menu properties
oCMenu2.pxBetween=
oCMenu2.fromLeft=10
oCMenu2.fromTop=220
oCMenu2.rows=1
oCMenu2.menuPlacement="center"
oCMenu2.offlineRoot="file:///C|/Documents and Settings/BHF/My
Documents/xBirgit/www/squiggyclassicinline/"
oCMenu2.onlineRoot="/coolmenus/"
oCMenu2.resizeCheck=1
oCMenu2.wait=1000
oCMenu2.fillImg="cm_fill.gif"
oCMenu2.zIndex=0
//Background bar properties
oCMenu2.useBar=1
oCMenu2.barWidth="100%"
oCMenu2.barHeight="menu"
oCMenu2.barClass="cl2Bar"
oCMenu2.barX=0
oCMenu2.barY=0
oCMenu2.barBorderX=0
oCMenu2.barBorderY=0
oCMenu2.barBorderClass=""
//Level properties - ALL properties have to be spesified in level
0
oCMenu2.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu2.level[0].width=101
oCMenu2.level[0].height=30
oCMenu2.level[0].regClass="cl2Level0"
oCMenu2.level[0].overClass="cl2Level0over"
oCMenu2.level[0].borderX=1
oCMenu2.level[0].borderY=1
oCMenu2.level[0].borderClass="cl2Level0border"
oCMenu2.level[0].offsetX=0
oCMenu2.level[0].offsetY=25
oCMenu2.level[0].rows=0
//oCMenu2.level[0].arrow=0
//oCMenu2.level[0].arrowWidth=0
//oCMenu2.level[0].arrowHeight=0
//oCMenu2.level[0].align="bottom"
//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the
properties you want different from LEVEL[0] - If you want all
items to look the same just remove this
oCMenu2.level[1]=new cm_makeLevel() //Add this for each new level
(adding one to the number)
oCMenu2.level[1].width=oCMenu2.level[0].width+10
oCMenu2.level[1].height=40
oCMenu2.level[1].regClass="cl2Level1"
oCMenu2.level[1].overClass="cl2Level1over"
oCMenu2.level[1].borderX=1
oCMenu2.level[1].borderY=1
//oCMenu2.level[1].align="bottom"
oCMenu2.level[1].offsetX=-(oCMenu2.level[0].width-2)/2+160
oCMenu2.level[1].offsetY=0
oCMenu2.level[1].borderClass="cl2Level1border"
//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the
properties you want different from LEVEL[0] - If you want all
items to look the same just remove this
oCMenu2.level[2]=new cm_makeLevel() //Add this for each new level
(adding one to the number)
oCMenu2.level[2].width=oCMenu2.level[1].width+100
oCMenu2.level[2].height=25
oCMenu2.level[2].regClass="cl2Level1"
oCMenu2.level[2].overClass="cl2Level1over"
oCMenu2.level[2].borderX=1
oCMenu2.level[2].borderY=1
//oCMenu2.level[2].align="bottom"
oCMenu2.level[2].offsetX=-(oCMenu2.level[1].width-2)/2+20
oCMenu2.level[2].offsetY=0
oCMenu2.level[2].borderClass="cl2Level1border"
/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width,
height, regImage, overImage, regClass, overClass , align, rows,
nolink, onclick, onmouseover, onmouseout)
*************************************/
oCMenu2.makeMenu('top0','','Home','
http://www.squiggyclassicinlin
e.com/index.html','')
//oCMenu2.makeMenu('sub00','top0','Newest
news','/news/index.asp')
//oCMenu2.makeMenu('sub001','sub00','- New DHTML API
released','','',160,0)
//oCMenu2.makeMenu('sub002','sub00','- Explorer 7 is
out','','',160,0)
//oCMenu2.makeMenu('sub003','sub00','- Opera 6 supports
innerHTML','','',160,0)
//oCMenu2.makeMenu('sub01','top0','News
archive','/news/archive.asp')
oCMenu2.makeMenu('top1','','Event
Info','
http://www.squiggyclassicinline.com/marathon_info/raceinfo
-all.html')
oCMenu2.makeMenu('sub10','top1','Skate in the
Dark','
http://www.squiggyclassicinline.com/marathon_info/skate-in
-the-dark.html')
oCMenu2.makeMenu('sub11','top1','Time
Trials','
http://www.squiggyclassicinline.com/marathon_info/timetr
ials.html')
oCMenu2.makeMenu('sub12','top1','Marathon','
http://www.squiggycl
assicinline.com/marathon_info/marathon.html')
oCMenu2.makeMenu('sub13','top1','Map','
http://www.squiggyclassic
inline.com/marathon_info/map-directions.html')
oCMenu2.makeMenu('top2','','Course
Map','
http://www.squiggyclassicinline.com/course_map/coursemap.ht
ml')
oCMenu2.makeMenu('top3','','Race
Results','
http://www.squiggyclassicinline.com/race_results/racere
sults.html')
oCMenu2.makeMenu('sub30','top3','2008
Results','
http://www.squiggyclassicinline.com/race_results/2008/2
008raceresults.html')
oCMenu2.makeMenu('sub301','sub30','2008 Results
All','
http://www.squiggyclassicinline.com/race_results/2008/2008r
aceresultsall.html')
oCMenu2.makeMenu('sub302','sub30','2008 Results by
age','
http://www.squiggyclassicinline.com/race_results/2008/2008r
aceresultsallage.html')
oCMenu2.makeMenu('sub303','sub30','2008 Results by
gender','
http://www.squiggyclassicinline.com/race_results/2008/20
08raceresultsallgender.html')
oCMenu2.makeMenu('sub304','sub30','2008 Results lap
times','
http://www.squiggyclassicinline.com/race_results/2008/200
8raceresultsalllaps.html')
oCMenu2.makeMenu('sub305','sub30','2008 Time
Trial','
http://www.squiggyclassicinline.com/race_results/2008/200
8raceresultsalltimeall.html')
oCMenu2.makeMenu('sub306','sub30','2008 Time Trial by
gender','
http://www.squiggyclassicinline.com/race_results/2008/20
08raceresultsalltimeage.html')
oCMenu2.makeMenu('sub307','sub30','2008 Race
Reports','
http://www.squiggyclassicinline.com/race_results/2008/2
008racereport.html')
oCMenu2.makeMenu('sub31','top3','2007
Results','
http://www.squiggyclassicinline.com/race_results/2007/2
007raceresults.html')
oCMenu2.makeMenu('sub310','sub31','2007 Results
All','
http://www.squiggyclassicinline.com/race_results/2007/2007a
ll.html')
oCMenu2.makeMenu('sub311','sub31','2007 Results
Female','
http://www.squiggyclassicinline.com/race_results/2007/20
07female.html')
oCMenu2.makeMenu('sub312','sub31','2007 Results
Male','
http://www.squiggyclassicinline.com/race_results/2007/2007
male.html')
oCMenu2.makeMenu('sub313','sub31','2007 Race
Report','
http://www.squiggyclassicinline.com/race_results/2007/20
07racereport.html')
oCMenu2.makeMenu('sub32','top3','2006
Results','
http://www.squiggyclassicinline.com/race_results/2006/2
006raceresults.html')
oCMenu2.makeMenu('top4','','Registration','
http://www.squiggyclas
sicinline.com/registration/registration.html')
//oCMenu.makeMenu('sub41','top1','All
scripts','/scripts/index.asp?show=all')
//oCMenu.makeMenu('sub42','top1','Popular
scripts','/scripts/index.asp?show=pop')
oCMenu2.makeMenu('top5','','Confirmation','
http://www.squiggyclas
sicinline.com/confirmation/confirmation.html')
//oCMenu2.makeMenu('sub50','top5','kk','
http://')
//oCMenu.makeMenu('sub11','top1','All
scripts','/scripts/index.asp?show=all')
//oCMenu.makeMenu('sub12','top1','Popular
scripts','/scripts/index.asp?show=pop')
//Leave this line - it constructs the menu
oCMenu2.construct()
--
Vil du lære at kode HTML, XHTML, CSS, SSI, ASP eller ASP.NET?
- Pædagogiske tutorials på dansk
- Kom godt i gang med koderne
KLIK HER! =>
http://www.html.dk/tutorials