Hallo zusammen
Ich habe ein php sript gefunden, welches genau auf meine Bedürfnisse zugeschnitten ist.
Da ich selber leider kein PHP kann und lediglich damit pröble, stosse ich nun bereits an meine Grenzen. Das nachfolgenden PHP Script erzeugt ein Bild / Text Wechsel. Um das Bild und den Text habe ich einen Rahmen gelegt. Nun möchte ich gerne, dass der Rahmen gepunktet in grau erscheint. Ich habe alles mögliche mit dem Befehl "dotted" versucht, doch der Rahmen erscheint nach wie vor als dicke Linie. Was müsste ich wo definieren? Oder noch besser, wie könnte ich eine Klasse definieren?
Hier der Code:
[php:1:3e56e863bd]<?php
function dodosrandgen() {
// set number of links you want to show at once
$show_link = 1;
// separate the links by, i.e. comma would be ",";
$separator = " ";
// Add links
// Please make sure you number entries CORRECTLY
// Look at the example for reference!
// DO NOT erase the priority part, leave all
// to 1 if you don't want them to have different
// priorities!
$links[0][link] = "<table width=\"500\" cellpadding=\"0\" cellspacing=\"0\" border=\"1px dotted=\"#C0C0C0\"><tr><td>
<font face=arial size=1></font><a href=\"http://regretless.com\" target=\"_blank\"><img src=\"em1.jpg\" border=\"0\" align=\"right\" width=\"88\" height=\"180\" style=\"filter:alpha(opacity=40)\" onMouseover=\"high(this)\" onMouseout=\"low(this)\"></a></td><td><font face=verdana size=2>
EM 1 ist die Urlösung der EM-Technologie und kommt in vielen Bereichen des Lebens zur Anwendung. Es wird hauptsächlich zur Aufvermehrung von EM1 zu EMa verwendet.</font></td></tr></table>";
$links[0][priority] = 1;
$links[1][link] = "<table width=\"250\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td><a href=\"http://pure-essence.net\" target=\"_blank\"><img src=\"pureessence.gif\" border=\"0\" align=\"right\" width=\"75\" height=\"75\" style=\"filter:alpha(opacity=40)\" onMouseover=\"high(this)\" onMouseout=\"low(this)\"></a><font face=verdana size=1>pure-essence.net is dodo's personal domain that shows who she is in real life and has her blog.</font></td></tr></table>";
$links[1][priority] = 1;
$links[2][link] = "<table width=\"250\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td><a href=\"http://board.regretless.com\" target=\"_blank\"><img src=\"dmb.gif\" border=\"0\" align=\"right\" width=\"75\" height=\"75\" style=\"filter:alpha(opacity=40)\" onMouseover=\"high(this)\" onMouseout=\"low(this)\"></a><font face=verdana size=1>dmb is dodo's popular message board. it's G rated and welcome all friendly members.</font></td></tr></table>";
$links[2][priority] = 1;
// HERE COMES THE BODY
if($links) {
for($i = -1; $i < count($links); $i++) {
for($j = 0; $j < $links[$i][priority]; $j++) {
$newlinksindex = count($newlinks) + 1;
$newlinks[$newlinksindex] = $links[$i][link];
}
}
} // end of if link exist
// debug
if($show_link >= count($newlinks))
$show_link = count($newlinks);
$showarray[0] = "";
$showindex = 0;
// Select a random element from the new array
do {
$randindex = rand(0, count($newlinks));
if(!in_array($newlinks[$randindex], $showarray) && $newlinks[$randindex] != "") {
$showarray[$showindex] = $newlinks[$randindex];
//print_r($showarray);
$showindex++;
}
}while(count($showarray) <= $show_link);
// finally print out
for($i = 0; $i < $show_link; $i++ ) {
if($show_link == 1 || (($i + 1) == $show_link))
print $showarray[$i];
else
print $showarray[$i].$separator;
}
//print_r($ranarray);
//print_r($links);
//print_r($newlinks);
} // end of the dodosrandgen function
?>
<html>
<head>
<title>dodosrandgen example 2</title>
<script language="JavaScript1.2">
/*
Gradual-Highlight Image Script-
© Dynamic Drive (
www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/
function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=40
}
function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=5
else if (window.highlighting)
clearInterval(highlighting)
}
</script>
</head>
<body text="#000000" link="#FFC8CB" vlink="#FFC8CB" alink="#FFC8CB">
<table border="0" width="50%" id="table1">
<tr>
<td>
<?dodosrandgen();?></td>
</tr>
</table>
<center>
</center>
</body>
</html>
?>[/php:1:3e56e863bd]