2008-11-24  682 1

全静态使用心得

 标签:

以前一直使用动态的或者半动态的,一直放弃不了一些插件
后来想通了,简单的才是最好的没必要整那么多花样出来
于是就索性全用静态了,幸好也没出现什么问题
只是有些效果出不来,比如AD等等
下面是我简单修改的效果

有些东西不能想动态的为我所欲,但是毕竟效果出来,这里修改的最好知道一些html代码,其实也不难
大家都用这么久pj了也应该知道。

以下全是修改Template/static.htm文件
首先图片浏览那个部分,其实我在动态的时候用的是插件,这里只是引用代码
[code]
<div id="mainContent-topimg"></div>
<!-- 内容开始 -->
在其下面添加
<div id="Content_XPhotoFocus" class="content-width"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="720" height="180">
<param name="movie" value="plugins/XPhotoFocus/XPhotoFocus.swf">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<param name="FlashVars"value="bcastr_file=plugins/XPhotoFocus/2008071701019236.gif|plugins/XPhotoFocus/2008010405413689.jpg&bcastr_title=夏天的记忆|旅行时你耳畔的音乐&bcastr_link=|http%3A//www.maninmusic.com/article/179.htm&TitleTextColor=0xFFFFFF&TitleBgColor=0x000000&TitleBgAlpha=40&TitleBgPosition=2&BtnDefaultColor=0xFF6600&BtnOverColor=0x000033&AutoPlayTime=5&Tween=3&WinOpen=_blank&IsShowBtn=1">
<embed src="plugins/XPhotoFocus/XPhotoFocus.swf" FlashVars="bcastr_file=plugins/XPhotoFocus/2008071701019236.gif|plugins/XPhotoFocus/2008010405413689.jpg&bcastr_title=夏天的记忆|旅行时你耳畔的音乐&bcastr_link=|http%3A//www.maninmusic.com/article/179.htm&TitleTextColor=0xFFFFFF&TitleBgColor=0x000000&TitleBgAlpha=40&TitleBgPosition=2&BtnDefaultColor=0xFF6600&BtnOverColor=0x000033&AutoPlayTime=5&Tween=3&WinOpen=_blank&IsShowBtn=1" Width="720" Height="180" loop="false" quality="high" type="application/x-shockwave-flash" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" salign="T" name="scriptmain" menu="false"></embed>
</object></div>[/code]
再次是日志内容AD

<div id="logPanel" class="Content-body">

下面添加广告代码
[code]<script type="text/javascript"><!--
google_ad_client = "pub-0630861881545359";
/* 728x15, 创建于 08-7-31 */
google_ad_slot = "9061415908";
google_ad_width = 728;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<div style="float:right;"><script type="text/javascript"><!--
google_ad_client = "pub-0630861881545359";
/* 200x200, 创建于 08-8-29 */
google_ad_slot = "9671196772";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>[code]
再就是侧栏广告,这里侧栏我只能在侧栏的上面或者下面添加AD
[code]<div id="innersidebar">
下面添加
<div id="Side_Alimama" class="sidepanel"><h4 class="Ptitle">赞助商</h4><div class="Pcontent"><div align="center"><script type="text/Javascript">
alimama_pid="mm_10001473_803850_2725865";
alimama_titlecolor="000000";
alimama_descolor ="030000";
alimama_bgcolor="FFFFFF";
alimama_bordercolor="E5E5E5";
alimama_linkcolor="FF2BAD";
alimama_bottomcolor="FFFFFF";
alimama_anglesize="8";
alimama_bgpic="0";
alimama_icon="0";
alimama_sizecode="35";
alimama_width=200;
alimama_height=200;
alimama_type=2;
</script>
<script src="http://a.alimama.cn/inf.js" type=text/javascript>
</script></div></div><div class="Pfoot"></div></div>[/code]

给我留言

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: