selve "10. april" strengen er nem at lave og det kan vil gøre med et standardscript:
<script type='text/javascript'>
var maanedsnavne = new Array( "januar", "februar", "marts", "april", "maj", "juni", "juli", "august", "september", "oktpber", "november", "december" );
function dagMaaned() { var dd = new Date(); var dagnr = dd.getDate(); var mnavn = maanedsnavne[ dd.getMonth() ]; return "" +dagnr +". " +mnavn; }; //end dagMaaned() -> streng
</script>
Det besværlige bliver at sætte det ind i de variable fra din .js fil hvor du ønsker det. det skal gøres i hånden med hensyntagen til hvad kode der står i den fil.
timegap=500 // The time delay for menus to remain visible followspeed=5 // Follow Scrolling speed followrate=40 // Follow Scrolling Rate suboffset_top=10; // Sub menu offset Top position suboffset_left=10; // Sub menu offset Left position
style1=[ // style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style. "black", // Mouse Off Font Color "CCCCCC", // Mouse Off Background Color "FFFFFF", // Mouse On Font Color "5F9EA0", // Mouse On Background Color "000000", // Menu Border Color 10, // Font Size in pixels "normal", // Font Style (italic or normal) "normal", // Font Weight (bold or normal) "Verdana, Arial, Helvetica, MS Sans Serif", // Font Name 3, // Menu Item Padding "arrow.gif", // Sub Menu Image (Leave this blank if not needed) , // 3D Border & Separator bar "FFFFFF", // 3D High Color "CCCCCC", // 3D Low Color "", // Current Page Item Font Color (leave this blank to disable) "", // Current Page Item Background Color (leave this blank to disable) "arrowdn.gif", // Top Bar image (Leave this blank to disable) "ffffff", // Menu Header Font Color (Leave blank if headers are not needed) "", // Menu Header Background Color (Leave blank if headers are not needed) ]
addmenu(menu=[ // This is the array that contains your menu properties and details "mainmenu", // Menu Name - This is needed in order for the menu to be called 50, // Menu Top - The Top position of the menu in pixels 100, // Menu Left - The Left position of the menu in pixels , // Menu Width - Menus width in pixels 1, // Menu Border Width , // Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle" style1, // Properties Array - this is set higher up, as above 1, // Always Visible - allows the menu item to be visible at all time (1=on/0=off) "left", // Alignment - sets the menu elements text alignment, values valid here are: left, right or center effect, // Filter - Text variable for setting transitional effects on menu activation - see above for more info , // Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off) 1, // Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off) , // Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off) , // Position of TOP sub image left:center:right , // ..Now Obsolete.. , // Right To Left - Used in Hebrew for example. (1=on/0=off) , // Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off) , // ID of the div you want to hide on MouseOver (useful for hiding form elements) , // Reserved for future use , // Reserved for future use , // Reserved for future use
jacoba >> perfekt, men hvordan ville du så tilføje tekst eller efter +dagMaaned() ?? Jeg har prøvet alt uden held. det burde kunne lade sig gøre som dette her eller hvordan?
,"Top 19 listen den "+dagMaaned(),"mere tekst her eller evt. ","show-menu=top19",,"",1
+ bruges som operator imellem tekstrenge der skal sættes efter hinanden.
så bare fortsæt med at 'addere strenge' til strengen:
,"Top 19 listen den " +dagMaaned() +" 2002" +" efter" +" kristi fødsel" +" ifølge den gregorianske kalender" +" men mu er din streng vist for lang til at passe i den menu :-)","show-menu=top19",,"",1
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.