Jump to content

[SOLVED] image source from function


adam291086

Recommended Posts

i am not sure how to explain this but i will try with the coding i have this function

function grayOut(vis, Id, largeimage, options)

 

i am trying to set an image source to equal largeimage

 

  var Display=document.getElementById('viewPic');
Display.src =largeimage;

 

the object largeimage is set like this

 onclick="grayOut(true,<?php echo $id ?>,<?php echo $image ?>,{'opacity':'60'})">

 

nothing happens at the moment when i click on the image. Any ideas?

 

 

Link to comment
https://forums.phpfreaks.com/topic/101239-solved-image-source-from-function/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.