我一直在使用來自www.dynamicdrive.com的傳送帶幻燈片腳本。我想讓圖像的高度成爲可變值。繼承人的代碼。html標記中的java腳本變量
var _docHeight = (document.height !== undefined) ? document.height : document.body.offsetHeight;
var _docWidth = (document.width !== undefined) ? document.width : document.body.offsetWidth;
var h;
var w1 = window.innerWidth;
var h1 = window.innerHeight;
var w = w1/1.365;
var h = h1 /1;
//Specify the slider's width (in pixels)
//Specify the slider's width (in pixels)
var sliderwidth=w + "px"
//Specify the slider's height
var sliderheight=h + "px"
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=2
//configure background color:
slidebgcolor="#000000"
var h3 = 20;
//Specify the slider's images
var leftrightslide=new Array()
var finalslide='2'
leftrightslide[0]='<img src="0price.png" height="h" border=0></a>'
請幫助
這是你正在嘗試做什麼? '' –