itskimical Posted October 1, 2010 Share Posted October 1, 2010 I am trying to implement a image zoom within a PHP document. Here is what I am trying to achieve:http://www.professorcloud.com/mainsite/cloud-zoom.htm and here is what I am working with:I have two images - one the thumbnail the other the one is the large imageThumbnail = $display_smimageLarge = $display_lgimageThis is the HTML code that I am to insert - transfering it to PHP is where I get caught up. <a href='/images/zoomengine/bigimage00.jpg' class = 'cloud-zoom' id='zoom1'rel="adjustX: 10, adjustY:-4"><img src="/images/zoomengine/smallimage.jpg" alt='' title="Optional title display" /></a> Here is what I have done so far that has not worked! echo "<a class=\"cloud-zoom\" id=\"zoom1\" href=$display_lgimage1";echo "$display_smimage1</a>"; I am not sure what to do with the rel="adjustX: 10, adjustY:-4"............so I left them out!Thank you!!! Link to comment Share on other sites More sharing options...
justsomeguy Posted October 1, 2010 Share Posted October 1, 2010 echo "<a href='{$display_lgimage1}' class = 'cloud-zoom' id='zoom1' rel='adjustX: 10, adjustY:-4'><img src='{$display_smimage1}' alt='' title='Optional title display' /></a>"; Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.