AW: Dreamweaver: Fancy Zoom
Ich versuche es mal.
1.
Die beiden Ordner "images-global" und "js-global" in den Root laden.
2.
<script src="/js-global/FancyZoom.js" type="text/javascript"></script>
<script src="/js-global/FancyZoomHTML.js" type="text/javascript"></script>
zwischen Head einfügen.
3.
Einen CSS-Stile (z.Bsp.) namens "fancy_zoom" ohne irgend welche Einstellungen anlegen.
4.
<body id="fancy_zoom.css" [...] onload="setupZoom()">
hinter
<body>
einfügen
4.
<a href="image.jpg"><img src="image-thumbnail.jpg" /></a>
Das wird beim Verlinken automatisch gesetzt.
5.
rel="nozoom" setze ich so ein:
<a href="image.jpg"><img src="image-thumbnail.jpg" rel="nozoom"/></a>
Ich vermute das ist alles nicht ganz korrekt.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Vietnam-Freunde.Net</title>
<link href="../ebenen.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
<!--
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.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}
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[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args)) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args)) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down") {
nbArr = document[grpName];
if (nbArr)
for (i=0; i < nbArr.length; i++) { img=nbArr; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args)) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
} }
}
//-->
</script>
</head>
<body onload="MM_preloadImages('../Button/vietnam_o.gif','../Button/uebersicht_o.gif','../Button/allgemeines_o.gif','../Button/geschichte_o.gif','../Button/wirtschaft_o.gif','../Button/tourismus_o.gif','../Button/literatur_o.gif','../Button/buecher_o.gif','../Button/kuenstler_o.gif')">
<div id="ebene_inhalt">
<p> </p>
<div id="ebene_fuss">Raum für den Inhalt von id "ebene_fuss"</div>
</div>
<div id="ebene_banner"><img src="http://www.psd-tutorials.de/modules/Forum/Banner/vnfb2.jpg" width="980" height="120" alt="banner" /></div>
<div id="ebene_navigation"><a href="http://www.psd-tutorials.de/modules/Forum/index.html" target="_top" onclick="MM_nbGroup('down','group1','vietnam','',1)" onmouseover="MM_nbGroup('over','vietnam','../Button/vietnam_o.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="http://www.psd-tutorials.de/modules/Forum/Button/vietnam_l.gif" alt="vietnam" name="vietnam" width="120" height="25" border="0" /></a><a href="uebersicht.html" target="_top" onclick="MM_nbGroup('down','group1','uebersicht','',1)" onmouseover="MM_nbGroup('over','uebersicht','../Button/uebersicht_o.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="http://www.psd-tutorials.de/modules/Forum/Button/uebersicht_l.gif" alt="Übersicht" name="uebersicht" width="120" height="25" border="0" /></a><a href="allgemeines.html" target="_top" onclick="MM_nbGroup('down','group1','allgemeines','',1)" onmouseover="MM_nbGroup('over','allgemeines','../Button/allgemeines_o.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="http://www.psd-tutorials.de/modules/Forum/Button/allgemeines_l.gif" alt="Allgmeines" name="allgemeines" width="120" height="25" border="0" /></a><a href="geschichte.html" target="_top" onclick="MM_nbGroup('down','group1','geschichte','',1)" onmouseover="MM_nbGroup('over','geschichte','../Button/geschichte_o.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="http://www.psd-tutorials.de/modules/Forum/Button/geschichte_l.gif" alt="Geschichte" name="geschichte" width="120" height="25" border="0" /></a><a href="wirtschaft.html" target="_top" onclick="MM_nbGroup('down','group1','wirtschaft','',1)" onmouseover="MM_nbGroup('over','wirtschaft','../Button/wirtschaft_o.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="http://www.psd-tutorials.de/modules/Forum/Button/wirtschaft_l.gif" alt="Wirtschaft" name="wirtschaft" width="120" height="25" border="0" /></a><a href="tourismus.html" target="_top" onclick="MM_nbGroup('down','group1','tourismus','',1)" onmouseover="MM_nbGroup('over','tourismus','../Button/tourismus_o.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="http://www.psd-tutorials.de/modules/Forum/Button/tourismus_l.gif" alt="Tourismus" name="tourismus" width="120" height="25" border="0" /></a><a href="literatur.html" target="_top" onclick="MM_nbGroup('down','group1','literatur','',1)" onmouseover="MM_nbGroup('over','literatur','../Button/literatur_o.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="http://www.psd-tutorials.de/modules/Forum/Button/literatur_l.gif" alt="Literatur" name="literatur" width="120" height="25" border="0" /></a><a href="buecher.html" target="_top" onclick="MM_nbGroup('down','group1','buecher','',1)" onmouseover="MM_nbGroup('over','buecher','../Button/buecher_o.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="http://www.psd-tutorials.de/modules/Forum/Button/buecher_l.gif" alt="Bücher" name="buecher" width="120" height="25" border="0" /></a><a href="kuenstler.html" target="_top" onclick="MM_nbGroup('down','group1','kuenstler','',1)" onmouseover="MM_nbGroup('over','kuenstler','../Button/kuenstler_o.gif','',1)" onmouseout="MM_nbGroup('out')"><img src="http://www.psd-tutorials.de/modules/Forum/Button/kuenstler_l.gif" alt="Künstler" name="kuenstler" width="120" height="25" border="0" /></a><img src="http://www.psd-tutorials.de/modules/Forum/Button/hilfe_l.gif" width="120" height="25" alt="Hilfe" /><img src="http://www.psd-tutorials.de/modules/Forum/Button/adressen_l.gif" width="120" height="25" alt="Adressen" /><img src="http://www.psd-tutorials.de/modules/Forum/Button/diverses_l.gif" width="120" height="25" alt="Diverses" /><img src="http://www.psd-tutorials.de/modules/Forum/Button/links_l.gif" width="120" height="25" alt="Links" /><img src="http://www.psd-tutorials.de/modules/Forum/Button/weltnachrichten_l.gif" width="120" height="25" alt="News" /><img src="http://www.psd-tutorials.de/modules/Forum/Button/gastautoren_l.gif" width="120" height="25" alt="Gastautoren" /><img src="http://www.psd-tutorials.de/modules/Forum/Button/disclaimer_l.gif" width="120" height="25" alt="Disclaimer" /><img src="http://www.psd-tutorials.de/modules/Forum/Button/impressum_l.gif" width="120" height="25" alt="Impressum" /><img src="http://www.psd-tutorials.de/modules/Forum/Button/ohne.gif" width="120" height="25" alt="Nichts" /><img src="http://www.psd-tutorials.de/modules/Forum/Banner/vietnamfreundebn.jpg" width="120" height="50" alt="erlebe vietnam" /><img src="http://www.psd-tutorials.de/modules/Forum/Button/ohne.gif" width="120" height="25" alt="ohne" /><img src="http://www.psd-tutorials.de/modules/Forum/Button/vietnam_forum_l.gif" width="120" height="25" alt="vietnam forum" /></div>
</body>
</html>
Der Code ist noch nicht ganz komplett, weil ich gerade die Mouse Over und Links realisiere.
haig