Pozdrav svima,
ovo je moje prvo javljanje na ovom forumu.
Imam problem sa menjanjem slike na prvoj stranici sajta putem pritiska na dugmad menija. Naime kada se ucita prva stranica, umesto da se ucita samo prva osnovna slika (center.gif), ucitaju se sve slike s leva na desno i to isto onako kako su poredjane u Dreamweaver-u pa sajt izgleda uzasno siroko, a trebalo bi da radi tako da kada se otvori prva stranica da se ucita osnovna slika i pritiskom na dugmad menija da se slike menjaju na toj stranici. Za dinamicku izmenu slika na indexu koriscen je php. Kako ovo da resim?
html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-2">
<title>KMS group</title>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body leftmargin="0" topmargin="0" rightmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="125" border="0" align="center" cellpadding="00" cellspacing="0" background="img/zaglavlje.gif">
<tr>
<td> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="900" border="0" align="center" cellpadding="00" cellspacing="0">
<tr>
<td width="268"><a id="pet" href="index.php?kms=pet" title=""><span>Pet predforme</span></a></td>
<td colspan="3" rowspan="7">
<?
$kms = $_GET['kms'];
if (!isset($kms))
{
?><img src="center.gif" width="666" height="394" border="0"><?
}
elseif ($kms == 'pet')
{
?><img src="pet_desno.jpg" width="666" height="394" border="0" usemap="#Map"><?
}
elseif ($kms == 'reklame')
{
?><img src="reklame_desno.jpg" width="666" height="394" border="0" usemap="#Map2"><?
}
elseif ($kms == 'plexi')
{
?><img src="plexi_desno.jpg" width="666" height="394" border="0" usemap="#Map3"><?
}
elseif ($kms == 'tamp')
{
?><img src="tamp_desno.jpg" width="666" height="394" border="0" usemap="#Map4"><?
}
elseif ($kms == 'plastifikacija')
{
?><img src="plastifikacija_desno.jpg" width="666" height="394" border="0" usemap="#Map5"><?
}
elseif ($kms == 'pice')
{
?><img src="pice_desno.jpg" width="666" height="394" border="0" usemap="#Map6"><?
}
elseif ($kms == 'pupi')
{
?><img src="pupi_desno.jpg" width="666" height="394" border="0" usemap="#Map7"><?
}
?> </td>
</tr>
<tr>
<td><a id="reklame" href="index.php?kms=reklame" title=""><span>Svetlece reklame</span></a></td>
</tr>
<tr>
<td><a id="plexi" href="index.php?kms=plexi" title=""><span>Plexiglas i Makrolon</span></a></td>
</tr>
<tr>
<td><a id="tamp" href="index.php?kms=tamp" title=""><span>tamp cevni zatvaraci</span></a></td>
</tr>
<tr>
<td><a id="plastifikacija" href="index.php?kms=plastifikacija" title=""><span>Plastifikacija metala</span></a></td>
</tr>
<tr>
<td><a id="pice" href="index.php?kms=pice" title=""><span>Veleprodaja pica</span></a></td>
</tr>
<tr>
<td><a id="pupi" href="index.php?kms=pupi" title=""><span>Pupi deciji butik</span></a></td>
</tr>
</table>
<table width="900" height="100" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="mirror.gif" width="934" height="89" border="0"></td>
</tr>
</table>
<p> </p></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<p> </p>
<p> </p>
<map name="Map"><area shape="rect" coords="8,283,662,388" href="pet_istorijat.html">
<map name="Map2"><area shape="rect" coords="8,283,662,388" href="reklame.html">
<map name="Map3"><area shape="rect" coords="8,283,662,388" href="pleximakrolon.html">
<map name="Map4"><area shape="rect" coords="8,283,662,388" href="tamp.php">
<map name="Map5"><area shape="rect" coords="8,283,662,388" href="plastifikacija.php">
<map name="Map6"><area shape="rect" coords="8,283,662,388" href="pice.php">
<map name="Map7"><area shape="rect" coords="8,283,662,388" href="pupi.php">
</map></body>
</html>
|