Wie stell ich so etwas an wie z.b. auf der homepage von www.kontent.de zu sehen ist, wenn man über eine grafik mit der maus rollt das eine fenster eingeblendet wird, und das ohne ladezeit!
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
<script language=\"Javascript\">
<!--
NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
NS6 = (document.getElementById) ? 1 : 0;
function show(idname,action) {
if(!action) {
if(IE4) document.all(idname).style.visibility = \"hidden\";
if(NS4) document.layers[idname].visibility = \"hide\";
if(NS6) document.getElementById(idname).style.visibility = \"hidden\";
}
else {
if(IE4) document.all(idname).style.visibility = \"visible\";
if(NS4) document.layers[idname].visibility = \"show\";
if(NS6) document.getElementById(idname).style.visibility = \"visible\";
}
}
//-->
</script>
<table border=\"0\" cellpadding=\"2\" cellspacing=\"1\" width=\"95%\">
<tr>
<td width=\"50%\"><a href=\"#\" onMouseOver=\"javascript:show('info',true);\">Kurzinfos</a></td>
<td width=\"50%\"><a href=\"#\" onMouseOver=\"javascript:show('friends',true);\" onMouseOut=\"javascript:show('friends',false);\">Freunde</a></td>
</tr>
</table>
<DIV ID=\"info\" STYLE=\"position:absolute; left:10; top:50; z-index:1; visibility: hidden\">
<table cellpadding=2 cellspacing=1 border=0 width=\"380\" bgcolor=\"black\" style=\"filter:Alpha(opacity=90, finishopacity=90, style=2)\">
<tr bgcolor=\"white\">
<td colspan=2>0000</td>
</tr>
<tr>
<td bgcolor=\"yellow\" width=\"40%\">Name:</td>
<td bgcolor=\"white\" width=\"60%\">Henning Karl Bopp</td>
</tr>
<tr>
<td bgcolor=\"yellow\" width=\"40%\">Geboren:</td>
<td bgcolor=\"white\" width=\"60%\">#</td>
</tr>
<tr>
<td bgcolor=\"yellow\" width=\"40%\">Interessen:</td>
<td bgcolor=\"white\" width=\"60%\">#</td>
</tr>
<tr bgcolor=\"white\">
<td colspan=2 align=\"center\"><a href=\"javascript:show('info',false);\">schließen...</a></td>
</tr>
</table>
</DIV>
<DIV ID=\"friends\" STYLE=\"position:absolute; left:10; top:50; z-index:1; visibility: hidden\">
<table cellpadding=2 cellspacing=1 border=0 width=\"380\" bgcolor=\"black\" style=\"filter:Alpha(opacity=90, finishopacity=90, style=2)\">
<tr bgcolor=\"white\">
<td colspan=2>0000</td>
</tr>
<tr>
<td bgcolor=\"yellow\" width=\"40%\">0000</td>
<td bgcolor=\"white\" width=\"60%\">000</td>
</tr>
<tr>
<td bgcolor=\"yellow\" width=\"40%\">0000</td>
<td bgcolor=\"white\" width=\"60%\"></td>
</tr>
</table>
</DIV>
DIV ID=\"info\" STYLE=\"position:absolute; left:10; top:50; z-index:1; visibility: hidden\">
Volltreffer. Die Position muss in pixeln vom linken rand der seite (left: 10) und dem oberrad der seite ausgehen. Problem dabei ist natürlich, dass die bilder schuterschiedliche höhen / breitengrade haben, wenn sie in anderen Auflösungen betrachtet werden. beachte dies!Original von Odin
Hab das ganze jetzt so gestaltet, dass es beim roll-over bei einem bild angezeigt wird.
Bis dahin läuft alles perfekt.
Nun möchte ich aber das, dass eingeblendete Fenster unterhalb des jeweiligen Bildes (den effekt hab ich bei mehreren Bildern eingefügt) erscheint.
Wie muss ich dazu diesenabändern?Code:DIV ID=\"info\" STYLE=\"position:absolute; left:10; top:50; z-index:1; visibility: hidden\">
schwachsinn. solange die angaben nicht in prozent gemacht werden ändert sich da garnichts. 10 pixel sind 10 pixel ...Original von boppy
Problem dabei ist natürlich, dass die bilder uterschiedliche höhen / breitengrade haben, wenn sie in anderen Auflösungen betrachtet werden. beachte dies!