Autor | Zpráva | ||
---|---|---|---|
Fasty Profil |
#1 · Zasláno: 27. 12. 2007, 10:57:39
mam mensi problem s menu, funguje sice spravne, ale nevim jak zmenit text v jednotlivych kolonkach... je to dany jako obrazek, tady je kod:
<HTML> <title>Java Script ze stránky - www.jaknaweb.com</title> <HEAD> <SCRIPT LANGUAGE = "JavaScript"> <!-- var whichB = navigator.appName; var versionB = navigator.appVersion; function decide() { if (whichB == "Netscape" || (whichB == "Microsoft Internet Explorer" && parseFloat(versionB) >= 4)) { fireUp(); } else { otherFireup (); } } function fireUp() { var ignite = window.open("recon/","ReCon","width=475,height=330,resize=no"); } function otherFireup() { var ignite = window.open("reconx/","ReCon","width=475,height=330,resize=no"); } //--> </SCRIPT> <SCRIPT LANGUAGE = "JavaScript"> <!-- conBrowser=0; function display(stuff) { window.status = stuff; } //--> </SCRIPT> <SCRIPT LANGUAGE = "JavaScript1.1"> <!-- conBrowser=1; toc1on = new Image(47, 197); toc1on.src = "art2.gif"; toc3on = new Image(47, 197); toc3on.src = "awa2.gif"; toc5on = new Image(47, 197); toc5on.src = "chat2.gif"; toc14on = new Image(47, 197); toc14on.src = "links2.gif"; toc15on = new Image(47, 197); toc15on.src = "mail2.gif"; toc16on = new Image(47, 197); toc16on.src = "news2.gif"; toc17on = new Image(47, 197); toc17on.src = "pic2.gif"; toc20on = new Image(47, 197); toc20on.src = "email2.gif"; toc1off = new Image(47, 197); toc1off.src = "art.gif"; toc2off = new Image(47, 197); toc2off.src = "club.gif"; toc3off = new Image(47, 197); toc3off.src = "awa.gif"; toc5off = new Image(47, 197); toc5off.src = "chat.gif"; toc14off = new Image(47, 197); toc14off.src = "links.gif"; toc15off = new Image(47, 197); toc15off.src = "mail.gif"; toc16off = new Image(47, 197); toc16off.src = "news.gif"; toc17off = new Image(47, 197); toc17off.src = "pic.gif"; toc20off = new Image(47, 197); toc20off.src = "email.gif"; //--> </SCRIPT> <SCRIPT LANGUAGE = "JavaScript"> <!-- function HighLight(musswitch) { if (conBrowser) { switchnavn = eval(musswitch + "on"); document [musswitch].src = switchnavn.src; } } function UndoHighLight(musswitch) { if (conBrowser) { switchnavn = eval(musswitch + "off"); document [musswitch].src = switchnavn.src; } } //--> </SCRIPT> </head> <body bgcolor="#000000"> <center> <A HREF="x.htm" onMouseover="HighLight('toc1'); display('Links to 400 related articles'); return true;" onMouseout ="UndoHighLight('toc1'); display('');" TARGET=front.htm> <IMG NAME="toc1" SRC="art.gif" BORDER="0" width="113" height="16"></A> <BR> <A HREF="award.htm" onMouseover="HighLight('toc3'); display('My awards so far'); return true;" onMouseout ="UndoHighLight('toc3'); display('');" TARGET=front.htm> <IMG NAME="toc3" SRC="awa.gif" BORDER="0" width="113" height="16"></A> <BR> <A HREF="x.htm" onMouseover="HighLight('toc5'); display('Chat'); return true;" onMouseout ="UndoHighLight('toc5'); display('');" TARGET=front.htm> <IMG NAME="toc5" SRC="chat.gif" BORDER="0" width="113" height="16"></A> <BR> <A HREF="x.htm" onMouseover="HighLight('toc14'); display('Links'); return true;" onMouseout ="UndoHighLight('toc14'); display('');" TARGET=front.htm> <IMG NAME="toc14" SRC="links.gif" BORDER="0" width="113" height="16"></A> <BR> <A HREF="x.htm" onMouseover="HighLight('toc15'); display('Links to mail lists'); return true;" onMouseout ="UndoHighLight('toc15'); display('');" TARGET=front.htm> <IMG NAME="toc15" SRC="mail.gif" BORDER="0" width="113" height="16"></A> <BR> <A HREF="x.htm" onMouseover="HighLight('toc16'); display('Links to newsgroups'); return true;" onMouseout ="UndoHighLight('toc16'); display('');" TARGET=front.htm> <IMG NAME="toc16" SRC="news.gif" BORDER="0" width="113" height="16"></A> <BR> <A HREF="x.htm" onMouseover="HighLight('toc17'); display('Picture Gallary'); return true;" onMouseout ="UndoHighLight('toc17'); display('');" TARGET=front.htm> <IMG NAME="toc17" SRC="pic.gif" BORDER="0" width="113" height="16"></A> <P> <A HREF="mailto:admin@www.jaknaweb.com" onMouseover="HighLight('toc20'); display('E-mail me!'); return true;" onMouseout ="UndoHighLight('toc20'); display('');" TARGET=front.htm> <IMG NAME="toc20" SRC="email.gif" BORDER="0" width="113" height="16"></A> </center> </BODY> </HTML> |
||
Str4wberry Profil |
#2 · Zasláno: 27. 12. 2007, 14:45:18
Budeš muset ty obrázky překreslit, ne?
|
||
Fasty Profil |
#3 · Zasláno: 29. 12. 2007, 14:01:48
no to me taky napadlo, ale prijde mi divny ze bych musel prekreslovat obrazky, kdyz si to stahnu z http://www.jaknaweb.com/scripty/javascripty/menu, je to vpodstate nepouzitelny...
|
||
Časová prodleva: 5 dní
|
|||
Fasty Profil |
#4 · Zasláno: 3. 1. 2008, 11:40:48
ok, tak to nevadi, nechame to byt, ale mam dalsi problem, a tyce se taky menu... chci udelat 1 hlavni menu a 1 "podmenu" ale vubec mi nejde to podmenu premistit...odkaz na ty stranky je http://wowplus.wz.cz/index.htm
|
||
habendorf Profil |
#5 · Zasláno: 3. 1. 2008, 12:01:21
Co to je za hrůzu ten kód? Brr
|
||
Fasty Profil |
#6 · Zasláno: 4. 1. 2008, 20:35:33 · Upravil/a: Fasty
ten kod? no je to script no.. jinak pardon, url stranky vam asi na nic nebude, psal sem to narychlo, moc sem nepremyslel co pisu. takze kod toho myho "podmenu" je:
<html> <head> <title>Java Script ze stránky - www.jaknaweb.com</title>; <META content="text/html; charset=windows-1251" http-equiv=Content-Type> <STYLE type=text/css>#menu { BACKGROUND: lightblue; COLOR: black; CURSOR: default; FONT-FAMILY: verdana; FONT-SIZE: 10pt; FONT-WEIGHT: bold } #menu .popup { BACKGROUND: lightblue; BORDER-BOTTOM: lightblue 12px solid; BORDER-LEFT: lightblue 12px solid; BORDER-RIGHT: lightblue 12px solid; BORDER-TOP: lightblue 12px solid; DISPLAY: none; FONT-FAMILY: verdana; FONT-SIZE: 8px; POSITION: absolute; WIDTH: 160pt } #menu P { MARGIN-BOTTOM: 0pt; MARGIN-TOP: 0pt } A:hover { COLOR: red; TEXT-DECORATION: none } A { COLOR: black; FONT-SIZE:8pt; MARGIN: 5px; TEXT-DECORATION: none } UL { COLOR: black; FONT-SIZE: 10pt; MARGIN: 5px; TEXT-DECORATION: none } LI { COLOR: black; FONT-SIZE: 10pt; MARGIN: 5px; TEXT-DECORATION: none } P { COLOR: black; FONT-SIZE: 10pt; MARGIN: 5px; TEXT-DECORATION: none } .over { COLOR: red } P { TEXT-ALIGN: justify; TEXT-INDENT: 0.1in } </STYLE> <SCRIPT language=JavaScript> var curPop = null; function clearCurrent() { // Hide the pop-up menu that is currently displayed. if (null != curPop) curPop.style.display = ""; curPop = null; } function popup() { clearCurrent(); var el = event.srcElement; // Display a new menu option. if (("P" == el.tagName) && ("menu" == el.parentElement.parentElement.parentElement.parentElement.id)) { // Position and display the pop-up menu. var elpop = document.all[el.sourceIndex + 1]; elpop.style.pixelLeft = el.parentElement.offsetLeft+7; elpop.style.pixelTop = el.offsetTop + document.all.menu.offsetTop+22; elpop.style.display = "block"; curPop = elpop; } event.cancelBubble = true; } function highlight() { // Highlight and popup the menu options. if (null != event.fromElement) if ((event.fromElement.tagName == "P") && (event.fromElement.parentElement.parentElement.parentElement.parentEle ment.id == "menu")) { event.fromElement.className = ""; } if (null != event.toElement) if ((event.toElement.tagName == "P") && (event.toElement.parentElement.parentElement.parentElement.parentEleme nt.id == "menu")) { popup(); event.toElement.className = "over"; } } </SCRIPT> </HEAD> <BODY onclick=clearCurrent()> <DIV style="BACKGROUND: lightblue; WIDHT: 100%"> <TABLE border=0 id=menu onclick=popup() onmouseout=highlight(); onmouseover=highlight();> <TBODY> <TR> <TD> <A href="http://www.jaknaweb.com/">Domů</A></TD> <TD bgColor=black></TD> <TD> <P>menu1 </P> <DIV class=popup> <P><A class=anchor href="http://submenu1/">submenu1 </A> <P><A href="http://www.submenu2.cz/">submenu2</A> <P><A href="http://www.submenu3.cz">submenu3</A> </P></DIV></TD> <TD bgColor=black></TD> <TD> <P>menu2</P> <DIV class=popup> <P><A href="http://submenu1">submenu1</A> <P><A href="http://submenu2">submenu2</A> <P><A href="http://submenu3">submenu3</A> <P><A href="http://submenu4">submenu4</A> </P></DIV></TD> <TD bgColor=black></TD> <TD> <P>e-mail</p> <DIV class=popup> <P><A href="mailto:xxx@xxx.cz">Napište mi</A> </p></div> </P></TD></TR></TBODY></TABLE></DIV> </body> </html> a jinak jsem to zkousel pres align posumout, ale proste se to nehlo... |
||
Časová prodleva: 16 let
|
0