文书文秘网旗下的动易爱好者频道 www.5151doc.com

文书文秘网首页 | 动易爱好者首页 | 动易模板下载 |

您现在的位置: 文书文秘网免费网 >> 动易使用技巧 >> 文章正文
[组图]最新超炫3种幻灯片效果(新添仿SOHU FLASH广告)-提供标签

          ★★★

最新超炫3种幻灯片效果(新添仿SOHU FLASH广告)-提供标签
作者:佚名  文章来源:动易论坛  点击数:  更新时间:2007-7-3 23:23:34

所有标签均兼容SQL版;

再添一种新效果,详情见下面:


图片点击可在新窗口打开查看此主题相关图片如下:
图片点击可在新窗口打开查看

 

sql查询语句(兼容SQL版):

select top 4 ArticleID,ChannelID,Title,LinkUrl,Content,DefaultPicUrl from PE_Article where ChannelID ={input(0)} and Elite = {$PE_True} and Status =3 and  Deleted= {$PE_False} and DefaultPicUrl like '%.jpg' order by ArticleID desc

标签部分:

<script type="text/javascript">
<!--{Loop}
{Infobegin}
bigPic{$AutoID}="{$installdir}{$Field(1,GetChannel,1)}/{$Field(1,GetChannel,3)}/{$Field(5,Text,0,0,0)}"
smallPic{$AutoID}="{$installdir}{$Field(1,GetChannel,1)}/{$Field(1,GetChannel,3)}/{$Field(5,Text,0,0,0)}"
imgLink{$AutoID}="{$installdir}{$Field(0,GetUrl,Article,1)}"
imgtext{$AutoID}="{$Field(2,Text,0,1,0)}"
content{$AutoID}="{$Field(4,Text,100,2,0)}"{Infoend}
{Infobegin}
{/Loop}
var t=imgtext1+"[|]"+imgtext2+"[|]"+imgtext3+"[|]"+imgtext4
var bigPicURL=bigPic1+"[|]"+bigPic2+"[|]"+bigPic3+"[|]"+bigPic4
var smallPicURL=smallPic1+"[|]"+smallPic2+"[|]"+smallPic3+"[|]"+smallPic4
var PicURL=imgLink1+"[|]"+imgLink2+"[|]"+imgLink3+"[|]"+imgLink4
var describe=content1+"[|]"+content2+"[|]"+content3+"[|]"+content4
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cabversion=7,0,0,0" width="535" height="356" ID=FSCommand NAME="focus_one" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="/skin/zaq.swf"><param name="quality" value="high"><param name="bgcolor" value="ffffff">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="bigPicURL=' + bigPicURL + '&smallPicURL=' + smallPicURL + '&t='+t+'&PicURL='+PicURL+'&describe='+describe+'">');
document.write('<embed src="/skin/zaq.swf" FlashVars="bigPicURL=' + bigPicURL + '&smallPicURL=' + smallPicURL + '&t='+t+'&PicURL='+PicURL+'&describe='+describe+'" quality="high" bgcolor="ffffff" width="535" height="356" name="focus" swLiveConnect="true" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
//-->
</script>

演示地址:http://www.tonee.com.cn/yanshi.asp    (只做短期内演示)

标签下载:http://www.tonee.com.cn/Soft/UploadSoft/200706/20070625161155484.rar

说明几点:1.图片的大小最好是 宽514 高257 否则图片显示会变形

                 2.文章中的文字内容需多于100个字符 要不显示出错

                 3.幻灯片的大小是固定的。

********************************************************************************************************************

*********************************************************************************************************************

再添个效果,虽然支持的不多,呵呵


图片点击可在新窗口打开查看此主题相关图片如下:
图片点击可在新窗口打开查看

标签下载: 图片点击可在新窗口打开查看点击浏览该文件

SQL查询语句没变,跟上面一样:

select top 4 ArticleID,ChannelID,Title,LinkUrl,Content,DefaultPicUrl from PE_Article where ChannelID ={input(0)} and Elite = {$PE_True} and Status =3 and  Deleted= {$PE_False} and DefaultPicUrl like '%.jpg' order by ArticleID desc

标签内容略有改动:

<script type="text/javascript">
<!--{Loop}
{Infobegin}
bigPic{$AutoID}="{$installdir}{$Field(1,GetChannel,1)}/{$Field(1,GetChannel,3)}/{$Field(5,Text,0,0,0)}"
smallPic{$AutoID}="{$installdir}skin/img/no{$AutoID}.jpg"
imgLink{$AutoID}="{$installdir}{$Field(0,GetUrl,Article,1)}"
imgtext{$AutoID}="{$Field(2,Text,{input(1)},2,0)}"
content{$AutoID}="{$Field(4,Text,{input(2)},2,0)}"{Infoend}
{Infobegin}
{/Loop}
var t=imgtext1+"[|]"+imgtext2+"[|]"+imgtext3+"[|]"+imgtext4
var bigPicURL=bigPic1+"[|]"+bigPic2+"[|]"+bigPic3+"[|]"+bigPic4
var smallPicURL=smallPic1+"[|]"+smallPic2+"[|]"+smallPic3+"[|]"+smallPic4
var PicURL=imgLink1+"[|]"+imgLink2+"[|]"+imgLink3+"[|]"+imgLink4
var describe=content1+"[|]"+content2+"[|]"+content3+"[|]"+content4
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cabversion=7,0,0,0" width="456" height="277" ID=FSCommand NAME="focus_one" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="/skin/zaq1.swf"><param name="quality" value="high"><param name="bgcolor" value="ffffff">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="bigPicURL=' + bigPicURL + '&smallPicURL=' + smallPicURL + '&t='+t+'&PicURL='+PicURL+'&describe='+describe+'">');
document.write('<embed src="/skin/zaq1.swf" FlashVars="bigPicURL=' + bigPicURL + '&smallPicURL=' + smallPicURL + '&t='+t+'&PicURL='+PicURL+'&describe='+describe+'" quality="high" bgcolor="ffffff" width="456" height="277" name="focus" swLiveConnect="true" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
//-->
</script>

可自定义所调用的文章频道ID,自定义所调用的文章标题字数,自定义所调用的文章内容字数,

{$MY_flash2(1,20,100)}   标签里的1是频道ID,20是标题字数,100是内容字数

注意:这2个FLASH不是同一个FLASH,2个不同的文件

********************************************************************************************************************************

***************************************************************************************************************************************

仿搜狐FLASH幻灯片标签:

效果图:


图片点击可在新窗口打开查看此主题相关图片如下:
图片点击可在新窗口打开查看

SQL查询语句(兼容SQL版):

select top 4 ArticleID,ChannelID,Title,DefaultPicUrl from PE_Article where ChannelID ={input(0)} and Elite = {$PE_True} and Status =3 and  Deleted= {$PE_False} and DefaultPicUrl like '%.jpg' order by ArticleID desc

标签内容:

<script src="/skin/aq.js" type=text/javascript></script>
<!--焦点图开始-->
<div id="sasFlashFocus227"></div>
<script type="text/javascript">
<!--{Loop}
{Infobegin}
img{$AutoID}="{$installdir}{$Field(1,GetChannel,1)}/{$Field(1,GetChannel,3)}/{$Field(3,Text,0,0,0)}"
imgLink{$AutoID}="{$installdir}{$Field(0,GetUrl,Article,1)}"
imgtext{$AutoID}="{$Field(2,Text,{input(1)},1,0)}"{Infoend}
{Infobegin}
{/Loop}
var pic_width={input(2)}
var pic_height={input(3)}
var button_pos={input(4)}
var stop_time={input(5)}
var show_text={input(6)}
var txtcolor="{input(7)}"
var bgcolor="{input(8)}"
var swf_height=show_text==1?pic_height+20:pic_height
var texts=imgtext1+"|"+imgtext2+"|"+imgtext3+"|"+imgtext4
var pics=img1+"|"+img2+"|"+img3+"|"+img4
var mylinks=imgLink1+"|"+imgLink2+"|"+imgLink3+"|"+imgLink4
var sohuFlash2 = new sohuFlash("/skin/aq.swf", "sasFlashFocus227", pic_width, swf_height, "4");
sohuFlash2.addParam("quality", "high");
sohuFlash2.addParam("wmode", "opaque");
sohuFlash2.addVariable("pics",pics);
sohuFlash2.addVariable("links",mylinks);
sohuFlash2.addVariable("texts",texts);
sohuFlash2.addVariable("pic_width",pic_width);
sohuFlash2.addVariable("pic_height",pic_height);
sohuFlash2.addVariable("show_text",show_text);
sohuFlash2.addVariable("txtcolor",txtcolor);
sohuFlash2.addVariable("bgcolor",bgcolor);
sohuFlash2.addVariable("button_pos",button_pos);
sohuFlash2.addVariable("stop_time",stop_time);
sohuFlash2.write("sasFlashFocus227");
//-->
</script>


前台调用:

{$MY_flash(1,20,295,195,2,3000,1,ff0000,DDDDDD)}

参数说明(按顺序来的):1:频道ID;20:图片标题字数;295:图片WIDTH;195:图片HEIGHT;2:按扭位置 1左 2右 3上 4下;3000:图片停留时间(1000为1秒钟);1:是否显示文字标签 1显示 0不显示(最好是不要显示的好,呵呵);ff0000:文字颜色;DDDDDD:背景颜色。

注意:标签里调用的JS文件不是广告,是幻灯片所必须的文件,已打包进去

标签下载:图片点击可在新窗口打开查看点击浏览该文件

如有不懂的,可联系ME  MY QQ:703362 

文章录入:5151doc    责任编辑:5151doc 
  • 上一篇文章:

  • 下一篇文章:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    最新热点
    最新推荐
    相关文章
    没有相关文章
    相关信息