Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: navigacija headeryje

Parašė Meskis· 2008 Gru. 22 22:12:56
#1

Sveiki, tiek žinau, kad galima į headerį imesti navigaciją su koordinatėmis:

<td><img src='".THEME."images/logo.png' usemap='#logo' width='800' height='223' border='0'></td>
<map id='logo' name='logo'>
<area shape='rect' coords='35,187,75,199' href='".BASEDIR."index.php'>
<area shape='rect' coords='103,185,142,197' href='".BASEDIR."siuntiniai.php'>
<area shape='rect' coords='170,179,213,194' href='".BASEDIR."pamokos.php'>
<area shape='rect' coords='241,171,302,183' href='".BASEDIR."komanda.php'>
<area shape='rect' coords='329,156,384,168' href='".BASEDIR."contact.php'>



bet ar imanoma tuos linkus padaryti, kad butu su paveiksliukais, ir kai paspaudi jis pasikeistų. pvz "siuntiniai" padaryt 2 paveiksliukus, vieną su raudonu uzrašu, kitą su baltu. seip būtų su baltu, paspaudi- būtų su raudonu. kaip tai padaryti? aciū :)

Parašė EHF· 2008 Gru. 22 22:12:33
#2

taj tarp logo.png parasyk ties ta ordinate ta zodi kuri nori nu tajp lengviausia :D

Parašė robert· 2008 Gru. 22 22:12:46
#3


<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<body onLoad="MM_preloadImages('1.png')"><a href="linkas.lt" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','2.png',1)"><img src="1.png" name="Image1" width="18" height="18" border="0"></a>




Parašė Meskis· 2008 Gru. 22 22:12:14
#4

aciu kad padedi, bet nelabai zinau kur iterpti, meta error tai duosiu theme.php gal padesit kas nors

<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#555555";
$body_bg = "#010101";
$theme_width = "766";
$theme_width_l = "181";
$theme_width_r = "181";

function render_header($header_content) {

global $theme_width;

echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>

<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table align='left' cellspacing='0' cellpadding='0' width='340'>
<tr>
<td align='left' class='h_DJ'></td>
</tr>
</table>
<table align='right' cellspacing='0' cellpadding='0' width='426'>
<tr>
<td><img src='".THEME."images/h_logo.png' usemap='#logo' width='426' height='223' border='0'></td>
<map id='logo' name='logo'>
<area shape='rect' coords='35,187,75,199' href='".BASEDIR."index.php'>
<area shape='rect' coords='103,185,142,197' href='".BASEDIR."laidos.php'>
<area shape='rect' coords='170,179,213,194' href='".BASEDIR."top20.php'>
<area shape='rect' coords='241,171,302,183' href='".BASEDIR."komanda.php'>
<area shape='rect' coords='329,156,384,168' href='".BASEDIR."contact.php'>
</map>
</tr>
<tr>
</tr>
</table>
</td>
</tr>\n";

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='footer'>
<tr>
</tr>
</table>
</td>
</tr>
</table>\n";

}

function render_news($subject, $news, $info) {

echo "<table align='center' cellpadding='0' cellspacing='0' width='475'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='info'>".showdate("shortdate", $info['news_date'])."<br>Parašė: <a href='profile.php?lookup=".$info['user_id']."' style='color:#76100E;'>".$info['user_name']."</a></td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
</table>\n";

}

function render_article($subject, $article, $info) {
   
echo "<table align='center' cellpadding='0' cellspacing='0' width='475' >
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='info'>".showdate("shortdate", $info['article_date'])."<br>Parašė: <a href='profile.php?lookup=".$info['user_id']."' style='color:#76100E;'>".$info['user_name']."</a></td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
</table>\n";

}

function opentable($title) {

echo "<table align='center' cellpadding='0' cellspacing='0' width='475'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";

}

function closetable() {

echo "</td>
</tr>
</table>\n";

}

function openside($title) {
   
echo "<table align='center' cellpadding='0' cellspacing='0' width='181'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside() {

echo "</td>
</tr>
</table>\n";
tablebreak();

}


function tablebreak() {

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";

}
?>



Redagavo Meskis· 2008 Gru. 23 13:12:11

Parašė Meskis· 2008 Gru. 23 13:12:44
#5

na as tikrai zalias net ant tokiu dalyku, kas padesit iterpt ta koda, +10. nu padekit jei galit.. ;)