在论坛里找的JS代码
- setTimeout(function(){
- var noticearea = document.getElementById("r26c1p_div");
- noticearea.innerHTML = "";
- var newmarquee = document.createElement("marquee");
- newmarquee.setAttribute("scrollamount",7);
- var newdiv = document.createElement("div");
- var page = Forguncy.Page;
- var cell = page.getCell("vbvv");
- var cellValue = cell.getValue();
- newdiv.innerHTML = cellValue;
- newdiv.style.overflow = "hidden";
- newdiv.style.fontSize = "20px";
- newdiv.style.whiteSpace = "nowrap";
- newdiv.style.textOverflow = "ellipsis";
- newmarquee.appendChild(newdiv);
- noticearea.appendChild(newmarquee);
- }, 1000);
复制代码
|