Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help formatting this line of js 1

Status
Not open for further replies.

PushCode

Programmer
Dec 17, 2003
573
US
Here's what I have:
Code:
imghtml='<a href="javascript:popImage(""assets/img/products/"'+theimg[0]+'"/"'+theimg[0]+'"_lg.jpg"",""Full Size Image"")">Zoom In</a>"[\code]

In plain html it would read:
[code]<a href="javascript:popImage('assets/img/products/1/1_lg.jpg','Full Size Image')">Zoom In</a>

The code I have is throwing an object expected error.

Any help would be appreciated, thanks!
 
Code:
imghtml="<a href=\"javascript:popImage('assets/img/products/" + theimg[0]+ "/" + theimg[0] + "_lg.jpg','Full Size Image')\">Zoom In</a>";

M. Brooks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top