0
var img = '<textarea cols="60" id=' + div_id + ' name=handle[' + required_name + '] rows="7">';
img = img + '<div id="fullscreen-button-'+id+'" style="position:relative;left:220px;width:24px;height:24px;cursor:pointer;background-image:url(../assets/resize_full.png);" onclick="fullscreen('+'"'+path+'"'+')"></div>';
img = img + '<embed src=' + path + ' width="" height="" />';
img = img + '</textarea>';

============================================

来る出力は

<div id="fullscreen-button-0" style="position:relative;left:220px;width:24px;height:24px;cursor:pointer;background-image:url(../assets/resize_full.png);" onclick="fullscreen(" upload microsite micro_1 calcsmall.swf')'></div>

onclick="fullscreen(" upload microsite micro_1 calcsmall.swf')'

私が欲しい

onclick="fullscreen('upload/microsite/micro_1/calcsmall.swf')"

4

1 に答える 1

1
img = img + '<div id="fullscreen-button-'+id+'" style="position:relative;left:220px;width:24px;height:24px;cursor:pointer;background-image:url(../assets/resize_full.png);" onclick="fullscreen(\''+path+'\')"></div>';
于 2012-10-22T10:32:27.023 に答える