z-index:1; virker ikke
Hej eksperter.Jeg har 2 elementer "10 tilfældige links" og "Supportsider" her på min forside:
www.phpfusion-tips.dk
Elementet 10 tilfældige links har noget hoover som vises "bagved" de nederste skiftende billeder i slideshow i Supportsider-elementet ved mouseover.
Jeg har forsøgt mig med at indsætte z-index:1; ved at give det noget style='' men det vil bare ikke virke for mig. Herunder følger begge koder jeg har skruet sammen:
Koden til 10 tilfældige links:
<?php
require_once BASEDIR."maincore.php";
$qresult = dbquery("SELECT * FROM ".DB_WEBLINKS." ORDER BY rand() LIMIT 0,10");
if(dbrows($qresult)!=0) {
opentable("10 tilfældige links");
echo "
<table width='100%' cellpadding='0' cellspacing='0' style='z-index:1;'>\n";
while($data = dbarray($qresult)) {
echo "
<tr>\n
<td class='small' align='left' style='z-index:1;'><img src='".THEME."images/bullet.gif' border='0' alt='' /> <a target='_blank' href='".BASEDIR."weblinks.php?cat_id=".$data['weblink_cat']."&weblink_id=".$data['weblink_id']."' title=\"header=[".$data['weblink_name']."] body=[".$data['weblink_description']."] delay=[0] fade=[off]\" class='side' style='z-index:1;'>".trimlink($data['weblink_name'], 25)."</a></td>\n
<td class='small' align='right'>[".$data['weblink_count']."]</td>\n
</tr>\n";
}
echo "
<tr>\n
<td class='side-small' align='center' colspan='2'><a href='".INFUSIONS."deluxe_weblink_portal/deluxe_weblink_portal.php'><b>Se alle links...</b></a></td>\n
</tr>\n
</table>\n";
echo "<div style='height:7px;'></div>\n";
closetable();
}
?>
Koden til Supportsider:
<?php
add_to_head("
<style type='text/css'>
/* give slideshow some style */
#slideshow { width: 170px; height: 60px; }
/* give each slide the same dimensions */
#slideshow div { width: 170px; height: 60px; }
/* make sure each slide image is centered */
#slideshow div img { margin: auto; display: block; }
</style>
<script type='text/javascript' src='".INCLUDES."cycle.js'></script>
<script type='text/javascript'>
$(function() {
var inners = $('.inner-slideshow').cycle();
});
</script>
");
opentable("Supportsider");
echo "
<table width='100%' cellpadding='0' cellspacing='0' style='height:144px;'>\n
<tr>\n
<td align='center' width='100%'>
<a href='http://www.php-fusion.dk' target='_blank'><img src='".IMAGES."flag/dk.gif' border='0' alt='Danmark' /></a>
<a href='http://www.php-fusion.co.uk/' target='_blank'><img src='".IMAGES."flag/gb.gif' border='0' alt='England - Hovedsiden' /></a>
<a href='http://www.phpfusion-support.de/' target='_blank'><img src='".IMAGES."flag/de.gif' border='0' alt='Tyskland' /></a>
<a href='http://www.php-fusion.se/' target='_blank'><img src='".IMAGES."flag/se.gif' border='0' alt='Sverige' /></a>
<a href='http://www.phpfusion-no.com/' target='_blank'><img src='".IMAGES."flag/no.gif' border='0' alt='Norge' /></a>
<a href='http://www.phpfusion.ro/' target='_blank'><img src='".IMAGES."flag/ro.gif' border='0' alt='Rumænien' /></a>
<a href='http://www.php-fusion.pl/' target='_blank'><img src='".IMAGES."flag/pl.gif' border='0' alt='Polen' /></a>
<br />
<a href='http://www.phpfusion-nederlands.info/' target='_blank'><img src='".IMAGES."flag/nl.gif' border='0' alt='Holland' /></a>
<a href='http://www.phpfusion-ar.com/' target='_blank'><img src='".IMAGES."flag/sa.gif' border='0' alt='Saudi Arabien' /></a>
<a href='http://www.phpfusion-nederlands.info/' target='_blank'><img src='".IMAGES."flag/be.gif' border='0' alt='Belgien' /></a>
<a href='http://www.phpfusion-br.com/' target='_blank'><img src='".IMAGES."flag/br.gif' border='0' alt='Brasilien' /></a>
<a href='http://www.phpfusion-fr.com/' target='_blank'><img src='".IMAGES."flag/fr.gif' border='0' alt='Frankrig' /></a>
<a href='http://www.fusion.alaviweb.com/' target='_blank'><img src='".IMAGES."flag/ir.gif' border='0' alt='Iran' /></a>
<a href='http://www.phpfusion-lt.com/' target='_blank'><img src='".IMAGES."flag/lt.gif' border='0' alt='Littauen' /></a>
<br />
<a href='http://www.php-fusion.co.hu/news.php' target='_blank'><img src='".IMAGES."flag/hu.gif' border='0' alt='Ungarn' /></a>
<a href='http://www.php-fusion.it/' target='_blank'><img src='".IMAGES."flag/it.gif' border='0' alt='Italien' /></a>
<a href='http://www.php-fusion.com.es/' target='_blank'><img src='".IMAGES."flag/es.gif' border='0' alt='Spanien' /></a>
<a href='http://www.phpfusionturkiye.com/' target='_blank'><img src='".IMAGES."flag/tr.gif' border='0' alt='Tyrkiet' /></a>
<a href='http://www.rusfusion.ru/' target='_blank'><img src='".IMAGES."flag/ru.gif' border='0' alt='Rusland' /></a>
<a href='http://php-fusion.cms-bg.org/' target='_blank'><img src='".IMAGES."flag/bg.gif' border='0' alt='Bulgarien' /></a>
<a href='http://www.php-fusion.sk/news.php' target='_blank'><img src='".IMAGES."flag/sk.gif' border='0' alt='Slovakiet' /></a>
<div id='slideshow'>
<div class='inner-slideshow'>
<a href='http://www.phpfusionmods.co.uk/' title='PHP-Fusion Mods UK' target='_blank'><img src='".IMAGES."affiliates/fangree.png' width='170' height='60' alt='' /></a>
<a href='http://www.phpfusion-mods.net/' title='PHPFusion-Mods.net' target='_blank'><img src='".IMAGES."affiliates/mods_net.jpg' width='170' height='60' alt='' /></a>
<a href='http://www.phpfusion-tips.dk/' title='PHPFusion-Tips.dk' target='_blank'><img src='".IMAGES."affiliates/pft_170x60.png' width='170' height='60' alt='' /></a>
</div>
</div>
</td>
</tr>\n
</table>\n";
closetable();
?>
Er her en der kan hjælpe med det ?
Mvh.
Buxxy.