Forum Moderators: open

Message Too Old, No Replies

.js codes inside a PHP

         

smartcard

7:38 pm on May 7, 2005 (gmt 0)

10+ Year Member



How can I put the following .js codes inside a PHP code (I mean I don't want to attaché a .js file with my codes, instead I need to embed the codes inside a PHP file)

}
function Big_Photo(target, filename) {
document[target].src = "/photo/" + Big_filename;
}

Span

8:28 pm on May 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




echo ("function Big_Photo(target, filename) {
document[target].src = \"/photo/\" + Big_filename;
}");