var times = 4000;//时间,定义速度
var hdjgtime = 500;//滑动间隔
var jgtime = 0;
var tmu = 1;
var fjid = "tangmu";//夫级id
var itemclass = "tmf";//子集class
function tm() {
times = 5000;
jgtime = 1000;
jgtime = 0;
$(".tmf").each(function () {
tangmu($(this).attr("id"));
});
}
tm();//页面初始调用
function tangmu(id){
var tangmu = document.getElementById(fjid);
var mathHeight = Math.round(Math.random()*(tangmu.offsetHeight))+"px";
var textLeft=tangmu.offsetWidth+"px";
var textStyleObj = document.getElementById(id);