日期:2014-05-19  浏览次数:20406 次

全部分数 求代码事例 ( 送全部的分数哦)
样子   是http://www.csdn.net/
左上角图片切换变化代码  

我下载了不他JS   看的晕,谁发个完整事例
最好是CSDN那个写法的代码  


------解决方案--------------------
左上角有什么?
------解决方案--------------------
function ShowNewMessagePic(){
var textt = " <a href= 'JavaScript:ClickNewMessage(); '> <img id= 'Pre_Img ' name= 'Pre_Img ' border= '0 ' src= '/logo/Images/Message001.gif ' alt= '您有新的短消息! ' width= '210 ' height= '67 ' /> </a> <bgsound src= '/Logo/Images/newMessage.wav ' border= '0 '> ";
getElement( "Pre_Link ").innerHTML = textt;
}
是短消息的时候这个马?
------解决方案--------------------
up
------解决方案--------------------
带按钮的

<SCRIPT type=text/javascript>
<!--
t=5; //设置时间

// 添加图片和连接
prmo = new Array();
link = new Array();

prmo[0]= " ";
link[0]= " ";
prmo[1]= " ";
link[1]= " ";
prmo[2]= " ";
link[2]= " ";
prmo[3]= " ";
link[3]= " ";
prmo[4]= " ";
link[4]= " ";
promos = " ";
links = " ";
for (x=0;x <prmo.length;x++) {
promos += (x+1 <prmo.length) ? prmo[x]+ "| " : prmo[x];
links += (x+1 <prmo.length) ? link[x]+ "| " : link[x];
}

var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes[ "application/x-shockwave-flash "]) ? navigator.mimeTypes[ "application/x-shockwave-flash "].enabledPlugin : 0;

if ( plugin ) {
var words = navigator.plugins[ "Shockwave Flash "].description.split( " ");
for (var i = 0; i < words.length; ++i)
{
if (isNaN(parseInt(words[i])))
continue;
var MM_PluginVersion = words[i];
}
var MM_FlashCanPlay = MM_PluginVersion > = MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf( "MSIE ")> =0
&& (navigator.appVersion.indexOf( "Win ") != -1)) {
document.write( ' <SCR ' + 'IPT LANGUAGE=VBScript> \n '); //FS hide this from IE4.5 Mac by splitting the tag
document.write( 'on error resume next \n ');
document.write( 'MM_FlashCanPlay = ( IsObject(CreateObject( "ShockwaveFlash.ShockwaveFlash. " & MM_contentVersion)))\n ');
document.write( ' </SCR ' + 'IPT> \n ');
}

if ( MM_FlashCanPlay ) {
document.write( ' <object classid= "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 " codebase= "http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 " width= "500 " height= "250 " align= "middle "> ');
document.write( ' <param name= "allowScriptAccess " value= "sameDomain " /> <param name= "movie " value= "http://photocdn.sohu.com/20050805/Img226577466.swf " /> <param name= "quality " value= "high " /> <param name= "bgcolor " value= "#ffffff " /> <param name= "wmode " value= "transparent " /> ');
document.write( ' <param name= "FlashVars " value= "p= ' + promos + '&l= ' + links + '&t= ' + t + ' "> ');