1、js源码
jQuery(document).ready(function(){ //firstname 包含新闻的容器id //secondname 显示新闻的容器id //thirdname 显示新闻标题的容器id //fourthname 显示导航图片的目标容器id //imagedir 导航图片根路径 //disablenewscount 禁止显示新闻数量 var newsoption = { firstname: "mynews", secondname: "showhere", thirdname:"news_display", fourthname:"news_button", imagedir: "images/easynewsplus/", disablenewscount: true, nexttitle: "下一篇: ", prevtitle: "", isauto: 1 } jQuery.init_plus(newsoption); var myoffset = jQuery('#news_button').offset(); var mytop = myoffset.top-1; jQuery('#news_button').css({top:mytop}); });
?
2、html源码
<div align=left id=mynewsdis> <div class=news_border> <div id=showhere class=news_show></div> </div> <div class=buttondiv id=news_button> <img src="images/easynewsplus/prev.gif" align="absmiddle" id=news_prev> <img src="images/easynewsplus/pause.gif" align="absmiddle" id=news_pause> <img src="images/easynewsplus/next.gif" align="absmiddle" id=news_next > </div> <div class=news_mark> <div id=news_display class=news_title></div> </div> </div> <div id=mynews> <div id=news1 class=news_style rel="重庆:拥护中央决定衷心欢迎张德" > <table class=mytable><tr><td>重庆:拥护中央决定衷心欢迎张德</td></tr></table> </div> <div id=news2 class=news_style rel="坚决清除党内变质腐分子"> <table class=mytable><tr><td>坚决清除党内变质腐分子</td></tr></table> </div> <div id=news3 class=news_style rel="重庆卫视称暂无广告招商计划"> <table class=mytable><tr><td>重庆卫视称暂无广告招商计划</td></tr></table> </div> <div id=news4 class=news_style rel="美称朝鲜如发射卫星将取消粮食援助"> <table class=mytable><tr><td>美称朝鲜如发射卫星将取消粮食援助</td></tr></table> </div> </div>
??
?