Re: [PHP] Using javascript function from php

2005-03-11 Thread Richard Lynch
> I am just learning php, and am currently converting some jsp pages to php. > I used the follwing code in jsp to toggle between two images Instead of driving yourself nuts with echo and quote and backslash and semi-colon quote semi-colon, just do like this: > > function toggle(imagename,src1,

[PHP] Using javascript function from php

2005-03-10 Thread b
Hi, I am just learning php, and am currently converting some jsp pages to php. I used the follwing code in jsp to toggle between two images
function toggle(imagename,src1,src2){
if(document.images && document.images[imagename])
{
image1=new Image;