GRY-Online.pl --> Archiwum Forum

HELP

09.02.2002
23:08
[1]

Vein [ Sannin ]

HELP

jeżeli ktoś sie zna na java script to moze mi pomoze, chciałbym żeby te menu sie nie chowało, i żeby wszystkie strony otwierały się w ramce "glowna"


<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title></title>
<script language="JavaScript1.2">


function move(x) ‹
if (document.all) ‹
object1.style.pixelLeft += x;
object1.style.visibility = "visible"›
else if (document.layers) ‹
document.object1.left += x;
document.object1.visibility = "show"››;

function makeStatic() ‹
if (document.all) ‹object1.style.pixelTop=document.body.scrollTop+20›
else ‹eval(document.object1.top=eval(window.pageYOffset+20));›
setTimeout("makeStatic()",0);›
</script>

<style>
<!--

.hl ‹
Background-Color : yellow;
Cursor:hand;

.n ‹
Cursor:hand;

-->
</style>
</head>

<body>
<h1 align="center">Boczne menu</h1>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<hr>
<p align="center">&nbsp;</p>
<LAYER visibility="hide" top="20" name="object1" bgcolor="black" left="0" onmouseover="move(132)" onmouseout="move(-132)">

<script language="JavaScript1.2">

function positionmenu()‹
move(-132)


if (document.all) ‹document.write('<DIV ID="object1" style="visibility:hidden;cursor:hand; Position : Absolute ;Left : 0px ;Top : 20px ;Z-Index : 20" onmouseover="move(132)" onmouseout="move(-132)">')›
</script>

<table border="0" cellpadding="0" cellspacing="1" width="150" bgcolor="#000000">
<tr><td bgcolor="#0099FF">&nbsp;<font size="4" face="Arial"><b>Menu</b></font></td>

<script language="JavaScript1.2">
document.write('<td align="center" rowspan="100" width="16" bgcolor="#FF6666"><span style="font-size:13px"><p align="center"><font face="Arial Black">M<br>E<br>N<br>U</font></p></span></TD>')
</script>

</tr>

<script language="JavaScript1.2"><!--
if (document.all||document.layers) ‹
makeStatic();›

var text=new Array();
var thelink=new Array();

//configure thelinks below. Extend as desired

text[0]="Główna";
text[1]="Warsztat";
text[2]="Instrukcja";
text[3]="Morotower";
text[4]="Galeria";
text[5]="Info";
text[6]="Kontakt";
text[7]="Linki";

thelink[0]="glowna.htm";
thelink[1]="warsztat.htm";
thelink[2]="instrukcja.htm";
thelink[3]="motorower.htm";
thelink[4]="galeria.htm";
thelink[5]="info.htm";
thelink[6]="kontakt.htm";
thelink[7]="linki.htm";


//enter target of above links
//Valid values are '', 'new', or 'framename' (where 'framename' is the name of the frame you wish the links to target)
var linktarget=''

///DO NOT EDIT BELOW THIS LINE////////////////

function navigateie(which)‹
if (linktarget=='')
window.location=thelink[which]
else if (linktarget=='new')
window.open(thelink[which])
else‹
temp_var=eval("window.parent."+linktarget)
temp_var.location=thelink[which]



for (i=0;i<=text.length-1;i++)
if (document.all) ‹document.write('<TR><TD height=20 bgcolor=white onclick="navigateie('+i+')" onmouseover="className=\'hl\'" onmouseout="className=\'n\'"><FONT SIZE=2 FACE=ARIAL>&nbsp;'+text[i]+'</FONT></TD></TR>')›
else ‹document.write('<TR><TD bgcolor="white"><ILAYER><LAYER HEIGHT="18" onmouseover="this.bgColor=\'yellow\'" onmouseout="this.bgColor=\'white\'" width=131><FONT SIZE=2 FACE=ARIAL>&nbsp;<A HREF="'+thelink[i]+'" target="'+linktarget+'" id="nounderline">'+text[i]+'</A></FONT></LAYER></ILAYER></TD></TR>')›

//-->
</script>
<tr>
<td bgcolor="#0099FF"><font size="1" face="Arial">&nbsp;</font></td>
</TR>
</table>
<script language="JavaScript1.2">
if (document.all) ‹document.write('</DIV>')›
window.onload=positionmenu
</script>
</LAYER>
</body>

</html>

11.02.2002
10:11
[2]

Vein [ Sannin ]

HELP!!!!!!!!!!!!!!

11.02.2002
11:59
[3]

Vein [ Sannin ]

I I I--------- I I--------I II I I I I I I II I------I I------ I I--------I II I I I I I II I I I--------- I______ I 0

11.02.2002
11:59
[4]

Vein [ Sannin ]

ahit mialo być HELP!!!!!!!

11.02.2002
13:05
[5]

Vein [ Sannin ]

help

11.02.2002
13:05
[6]

Vein [ Sannin ]

help

11.02.2002
13:12
[7]

shard [ Pretorianin ]

na chowanie nie mam czasu (musialbym poczytac o co tu chodzi ;]) ale zeby all otwieralo sie w danej ramce musisz do tagu "a href" dodac "target=nazwa_ramki"

11.02.2002
13:47
[8]

Vein [ Sannin ]

a moglbys to zmienic i dac na forum ? bo ja z ego kodu nic nie rozumiem.....

11.02.2002
14:55
[9]

shard [ Pretorianin ]

w kodzie masz linie: //enter target of above links //Valid values are '', 'new', or 'framename' (where 'framename' is the name of the frame you wish the links to target) var linktarget='' zmien: var linktarget='' na: var linktarget='glowna' :) co do chowania menu to czemu nie chesz zeby sie chowalo? O to w calym tym skrypcie chodzi, inaczej mozesz wogule z niego zrezygnowac ;]

11.02.2002
15:07
[10]

Vein [ Sannin ]

ehh niechce zeby sie chowalo bo mi sie tak nie podoba, a te menu uzywam bo mi sie podobają te zmieniające kolor przyciski :)

11.02.2002
19:09
[11]

shard [ Pretorianin ]

zmiane koloru mozna zrobic prosciej, chocby tak jak na forum GO ;]

© 2000-2024 GRY-OnLine S.A.