เทพ javascript ช่วยทีครับ

เริ่มโดย mucilin, 13 มิถุนายน 2012, 20:45:48

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

mucilin

function ChangeOption(value) {
   var Option_01 = "<center><img src='picture_XXX.jpg' border='0' width='240'></center>";
                  document.getElementById("product_image").innerHTML = Option_01;
}


ผมอยากจะใส่ตัวแปร value ตรง XXX น่ะครับต้องพิมพ์ยังไง

สมมุตุ value มีค่าเท่ากับ 111
คือต้องการให้ผลเป็นแบบนี้ครับ
<img src='picture_111.jpg' border='0' width='240'>

:wanwan017: :wanwan017:
[direct=http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=mucilin-thaiseo]
Hostgator เดือนแรกจ่าย $0.01 Code : dagator001[/direct]

New2th

_
#1
 :wanwan008:

mucilin

[direct=http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=mucilin-thaiseo]
Hostgator เดือนแรกจ่าย $0.01 Code : dagator001[/direct]