Ich habe eine HTML Datei in der JS vorkommt und wollte diese nun in eine PHP umändern da ich diese Datei später in mein phpNuke einbinden will.
Hier mal der quellcode:
Ich habe es mit dem echo Befehl versucht und dabei mal die JS ausgeschlossen. Geht aber nicht. Bidde net hauen ich bin noch net so der Checker.
Hier mal der quellcode:
PHP-Code:
<HTML>
<HEAD>
<TITLE>Untitled-1</TITLE>
<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=iso-8859-1\">
<SCRIPT TYPE="text/javascript">
<!--
function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}
function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}
var preloadFlag = false;
function preloadImages() {
if (document.images) {
id0_01_03er_over = newImage("images/0_01-03er_over.gif");
id0_01_02er_over = newImage("images/0_01-02er_over.gif");
id0_01_1er_over = newImage("images/0_01-1er_over.gif");
id0_01_04er_over = newImage("images/0_01-04er_over.gif");
id0_01_09er_over = newImage("images/0_01-09er_over.gif");
id0_01_08er_over = newImage("images/0_01-08er_over.gif");
id0_01_07er_over = newImage("images/0_01-07er_over.gif");
id0_01_06er_over = newImage("images/0_01-06er_over.gif");
preloadFlag = true;
}
}
// -->
</SCRIPT>
</HEAD>
<BODY BGCOLOR=#FFe400 LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 ONLOAD="preloadImages();">
<IMG NAME="id0_01" SRC="images/0_01.gif" WIDTH=595 HEIGHT=400 BORDER=0 ALT="" USEMAP="#id0_01_Map">
<MAP NAME="id0_01_Map">
<AREA SHAPE="poly" ALT="" COORDS="275,37, 278,26, 315,53, 320,50, 329,59, 352,58, 352,66, 331,79, 340,92, 319,96, 292,99, 232,126, 221,141, 231,172, 220,178, 240,223, 239,239, 232,245, 206,240, 188,223, 151,226, 143,225, 138,200, 128,201, 119,185, 100,199, 81,178, 85,171, 73,132, 74,105, 88,74, 110,70, 118,58, 139,68, 154,86,
159,66, 169,63, 173,60, 189,71, 191,64, 213,63, 232,43, 234,32, 251,25" HREF="06"
ONMOUSEOVER="changeImages('id0_01', 'images/0_01-06er_over.gif'); return true;"
ONMOUSEOUT="changeImages('id0_01', 'images/0_01.gif'); return true;">
<AREA SHAPE="poly" ALT="" COORDS="195,232, 214,250, 234,254, 237,272, 245,276, 241,307, 201,330, 204,348, 190,359, 183,353, 156,365, 144,359, 145,355, 148,351, 138,344, 133,335, 126,329, 121,324, 111,325, 107,317, 99,318, 92,301, 106,292, 105,285, 126,277, 141,274, 147,251, 173,226" HREF="07"
ONMOUSEOVER="changeImages('id0_01', 'images/0_01-07er_over.gif'); return true;"
ONMOUSEOUT="changeImages('id0_01', 'images/0_01.gif'); return true;">
<AREA SHAPE="poly" ALT="" COORDS="288,274, 304,305, 316,308, 318,318, 328,331, 328,343, 310,339, 269,365, 254,380, 225,367, 220,371, 209,367, 210,341, 209,327, 250,306, 254,272, 268,267, 272,255, 282,257" HREF="08"
ONMOUSEOVER="changeImages('id0_01', 'images/0_01-08er_over.gif'); return true;"
ONMOUSEOUT="changeImages('id0_01', 'images/0_01.gif'); return true;">
<AREA SHAPE="poly" ALT="" COORDS="336,225, 364,224, 369,227, 387,226, 404,288, 393,299, 381,297, 334,338, 327,320, 320,310, 320,300, 303,298, 288,257, 298,250, 303,244, 309,214, 324,213" HREF="09"
ONMOUSEOVER="changeImages('id0_01', 'images/0_01-09er_over.gif'); return true;"
ONMOUSEOUT="changeImages('id0_01', 'images/0_01.gif'); return true;">
<AREA SHAPE="poly" ALT="" COORDS="386,59, 381,93, 359,99, 378,125, 400,127, 407,146, 396,153, 377,142, 351,150, 356,217, 330,216, 321,206, 300,215, 295,242, 286,239, 278,250, 265,255, 262,266, 238,267, 242,243, 247,230, 238,204, 228,178, 238,172, 227,137, 246,122, 313,99, 337,98, 347,88, 338,78, 370,64, 387,57" HREF="04"
ONMOUSEOVER="changeImages('id0_01', 'images/0_01-04er_over.gif'); return true;"
ONMOUSEOUT="changeImages('id0_01', 'images/0_01.gif'); return true;">
<AREA SHAPE="poly" ALT="" COORDS="460,107, 444,154, 450,159, 471,156, 481,167, 477,199, 491,216, 486,225, 495,235, 437,277, 408,275, 386,217, 366,220, 359,150, 385,149, 401,158, 412,143, 405,122, 435,109, 445,100" HREF="1"
ONMOUSEOVER="changeImages('id0_01', 'images/0_01-1er_over.gif'); return true;"
ONMOUSEOUT="changeImages('id0_01', 'images/0_01.gif'); return true;">
<AREA SHAPE="poly" ALT="" COORDS="537,107, 540,119, 565,131, 578,190, 550,245, 534,239, 526,217, 492,208, 482,195, 479,157, 464,150, 447,151, 454,131, 464,117, 498,121" HREF="02"
ONMOUSEOVER="changeImages('id0_01', 'images/0_01-02er_over.gif'); return true;"
ONMOUSEOUT="changeImages('id0_01', 'images/0_01.gif'); return true;">
<AREA SHAPE="poly" ALT="" COORDS="508,17, 516,12, 529,21, 517,60, 528,81, 539,92, 536,102, 483,117, 463,111, 463,101, 438,98, 424,111, 387,120, 375,117, 367,100, 385,94, 392,80, 404,85, 413,74, 423,75, 419,57, 425,44, 475,47, 483,34, 484,21, 498,11" HREF="03"
ONMOUSEOVER="changeImages('id0_01', 'images/0_01-03er_over.gif'); return true;"
ONMOUSEOUT="changeImages('id0_01', 'images/0_01.gif'); return true;">
</MAP>
</BODY>
</HTML>
![dontknow](https://www.php-resource.de/forum/core/images/smilies/fragend013.gif)
Kommentar