<?php
/**
*为了获取模板的标签,定义数组值,如果是旧标签的话.在后来会被数值替换.新标签的话继续是数组,也会进一步被处理
**/
function label_array($key){
global $label,$all_label;
$key=str_replace(array('"',"'"),array('',''),$key);
$label[$key]=array();
$all_label[]=$key;
}
//头与尾用
function label_array_hf($key){
global $label_hf,$all_label;
$label_hf[$key]=array();
$all_label[]=$key;
}
/**
*添加层,后台更新内容要用到
**/
function add_div($value,$tag,$type='code',$div_w='',$div_h='',$div_bgcolor='',$if_hf=''){
global $webdb,$chtype,$ch;
if($value){
$div_w>50 || $div_w=50;
$div_h>21 || $div_h=21;
$div_bgcolor || $div_bgcolor='#A6A6FF';
$type=="flash" && $br="<br>"; //防止被FLASH档住,看不到层
$value_a="<div id=\"$tag\" style=\"text-align:left;width:{$div_w}px;height:{$div_h}px;position:absolute;z-index:2;border:#ff0000 solid 1.5px;background-color: $div_bgcolor;filter:Alpha(Opacity=50);\" onmouseover=\"showlabel_(this,'over','$type','$if_hf');\" onmouseout=\"showlabel_(this,'out','$type','$if_hf');\" onclick=\"showlabel_(this,'click','$type','$if_hf');\"><div style='position:absolute;z-index:6;' onclick='return false;' onmouseover=\"ckjump_(0);\" onmouseout=\"ckjump_(1);\"><img src=\"$webdb[www_url]/images/default/position2.gif\" style='width:21px;height:21px;' border=\"0\" usemap=\"#Map$tag\" /><map name=\"Map$tag\"><area shape=\"rect\" coords=\"7,0,14,7\" href=\"javascript:\" onMouseDown=\"change_po_('up',1,'$tag');\" onMouseUp=\"change_po_('up',0,'$tag');\" alt=\"向上\" /><area shape=\"rect\" coords=\"7,14,14,21\" href=\"javascript:\" onMouseDown=\"change_po_('down',1,'$tag');\" onMouseUp=\"change_po_('down',0,'$tag');\" alt=\"向下\" /><area shape=\"rect\" coords=\"0,7,7,14\" href=\"javascript:\" onMouseDown=\"change_po_('left',1,'$tag');\" onMouseUp=\"change_po_('left',0,'$tag');\" alt=\"向左\" /><area shape=\"rect\" coords=\"14,7,21,14\" href=\"javascript:\" onMouseDown=\"change_po_('right',1,'$tag');\" onMouseUp=\"change_po_('right',0,'$tag');\" alt=\"向右\" /></map></div></div>$br<table border='0' cellspacing='0' cellpadding='0' class='label_$tag'> <tr> <td>$value</td> </tr></table>";
$value_b="<div class=\"p8label\" id=\"$tag\" style=\"filter:alpha(opacity=50);position: absolute; border: 1px solid #ff0000; z-index: 9999; color: rgb(0, 0, 0); text-align: left; opacity: 0.4; width: {$div_w}px; height:{$div_h}px; background-color:$div_bgcolor;\" onmouseover=\"showlabel_(this,'over','$type','$if_hf');\" onmouseout=\"showlabel_(this,'out','$type','$if_hf');\" onclick=\"showlabel_(this,'click','$type','$if_hf');\"><div onmouseover=\"ckjump_(0);\" onmouseout=\"ckjump_(1);\" style=\"position: absolute; width: 15px; height: 15px; background: url($webdb[www_url]/images/default/se-resize.png) no-repeat scroll -8px -8px transparent; right: 0px; bottom: 0px; clear: both; cursor: se-resize; font-size: 1px; line-height: 0%;\"></div></div>$br<table border='0' cellspacing='0' cellpadding='0' class='label_$tag'> <tr> <td>$value</td> </tr></table>";
//$value外面套一个table,目的是为了处理兼容性问题,有时标签过多,有个别标签无法显示
if(is_file(ROOT_PATH."images/default/label_jq.js")){
return $value_b;
}else{ //兼容旧的
return "$value_a";
}
}
}
function rollpic_2js($rolldb){
global $webdb;
@extract($rolldb);
$width || $width=200;
$height || $height=200;
$num=count($picurl);
for($i=0;$i<=$num;$i++){
if(!$picurl[$i]){
continue;
}
$picurl[$i]=tempdir($picurl[$i]);
//$picurl[$i]=AddSlashes($picurl[$i]);
//$piclink[$i]=urlencode(AddSlashes($piclink[$i]));
//$picalt[$i]=AddSlashes($picalt[$i]);
$j=$i-1;//后台那里是从1开始的.所以这时要处理
$show.="<LI style=\"WIDTH: {$width}px; HEIGHT: {$height}px\"><A href=\"{$piclink[$i]}\" target=\"_blank\"><IMG src=\"{$picurl[$i]}\" style=\"WIDTH: {$width}px; HEIGHT: {$height}px;\"></A><SPAN class=\"title\">{$picalt[$i]}</SPAN></LI>";
}
$show="<SCRIPT src=\"$webdb[www_url]/images/default/rollpic.js\" type=\"text/javascript\"></SCRIPT>
<link rel=\"stylesheet\" type=\"text/css\" href=\"$webdb[www_url]/images/default/rollpic.css\">
<DIV class=\"p8rollpic\"><UL class=\"slideshow\">$show</UL></DIV>
<SCRIPT type=\"text/javascript\">runslideshow();</SCRIPT>";
return $show;
}
/*滚动特效的图片--js方式*/
function rollPic_JS($rolldb){
global $webdb;
@extract($rolldb);
$width || $width=200;
$height || $height=150;
$num=count($picurl);
$rand=rands(5);
$string='';
for($i=0;$i<=$num;$i++){
if(!$picurl[$i]){
continue;
}
$img=tempdir($picurl[$i]);
$url=$piclink[$i];
$title=$picalt[$i];
$string.="<P><A title='$title' href='$url' target=_blank><IMG style='HEIGHT:{$height}px;' alt='$title' src='$img'></A><A title='$title' href='$url' target='_blank'>$title</A></P>";
}
//自定义幻灯片接口
if($RollStyleType&&is_file(ROOT_PATH."template/default/rollpic/$RollStyleType") ){
foreach($picurl AS $key=>$value){
$picurl[$key]=addslashes($picurl[$key]);
$picalt[$key]=addslashes($picalt[$key]);
$piclink[$key]=urlencode($piclink[$key]);
}
$title=implode("|",$picalt);
$img=implode("|",$picurl);
$url=implode("|",$piclink);
include(ROOT_PATH."template/default/rollpic/$RollStyleType");
return $show;
}
$height=$height+30;
$rolltype || $rolltype='scrollLeft';
$rolltime>0 || $rolltime=3;
$show="<link rel='stylesheet' type='text/css' href='$webdb[www_url]/images/default/rollpic.css'>
<script type='text/javascript' src='$webdb[www_url]/images/default/jquery-1.2.6.min.js'></script>
<SCRIPT type='text/javascript'>
$(function() {
$('#rollpicobj$rand')
.after('<div id=pager$rand class=pager>')
.cycle({
fx: '$rolltype',
speed: 500,
timeout: {$rolltime}000,
pause: 1,
pager: '#pager$rand'
});
});
</SCRIPT>
<DIV class='rollpicTB' style='width:{$width}px;FLOAT: left;TEXT-ALIGN: center;'><DIV id='rollpicobj$rand' class='rollpicobj' style='HEIGHT:{$height}px;'>$string</DIV></div>";
return $show;
}
//JS幻灯片,没有标题的
function rollPic_no_title_js($rolldb){
global $webdb;
@extract($rolldb);
$width || $width=200;
$height || $height=200;
$jsnum=$num=count($picurl);
for($i=1;$i<=$num;$i++){
if(!$picurl[$i]){
$jsnum--;
continue;
}
$picurl[$i]=tempdir($picurl[$i]);
$picurl[$i]=AddSlashes($picurl[$i]);
$piclink[$i]=(AddSlashes($piclink[$i]));
$picalt[$i]=AddSlashes($picalt[$i]);
$show.="
img{$i}=new Image ();img{$i}.src='$picurl[$i]';
url{$i}=new Image ();url{$i}.src='$piclink[$i]';
";
}
$show="
<script type='text/javascript'>
var widths=$width;
var heights=$height;
var counts=$jsnum;
$show
var nn=1;
var key=0;
function change_img()
{if(key==0){key=1;}
else if(document.all)
{document.getElementById(\"pic\").filters[0].Apply();document.getElementById(\"pic\").filters[0].Play(duration=2);}
eval('document.getElementById(\"pic\").src=img'+nn+'.src');
eval('document.getElementById(\"url\").href=url'+nn+'.src');
eval('document.getElementById(\"url\").target=\"blank\"');
for (var i=1;i<=counts;i++){document.getElementById(\"xxjdjj\"+i).className='axx';}
document.getElementById(\"xxjdjj\"+nn).className='bxx';
nn++;if(nn>counts){nn=1;}
tt=setTimeout('change_img()',4000);}
function changeimg(n){nn=n;window.clearInterval(tt);change_img();}
document.write('<style>');
document.write('.axx{padding:1px 7px;border-left:#cccccc 1px solid;}');
document.write('a.axx:link,a.axx:visited{text-decoration:none;color:#fff;line-height:12px;font:9px sans-serif;background-color:#666;}');
document.write('a.axx:active,a.axx:hover{text-decoration:none;color:#fff;line-height:12px;font:9px sans-serif;background-color:#999;}');
document.write('.bxx{padding:1px 7px;border-left:#cccccc 1px solid;}');
document.write('a.bxx:link,a.bxx:visited{text-decoration:none;color:#fff;line-height:12px;font:9px sans-serif;background-color:#D34600;}');
document.write('a.bx
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
齐博地方门户系统V4.0 2013年最新官方原版 (10407个子文件)
3g.apk 25KB
hybmp.bmp 21KB
kela.bmp 6KB
default.css 36KB
ueditor.css 27KB
main.css 25KB
main.css 23KB
main.css 23KB
main.css 21KB
main.css 20KB
main.css 20KB
index.css 17KB
main.css 17KB
index.css 15KB
index.css 15KB
index.css 15KB
index.css 15KB
index.css 15KB
index.css 15KB
index.css 15KB
index.css 15KB
main.css 15KB
main.css 15KB
house.css 13KB
house.css 13KB
house.css 13KB
house.css 13KB
house.css 13KB
index.css 12KB
style.css 12KB
css.css 12KB
css.css 12KB
css.css 12KB
css.css 12KB
css.css 12KB
hy_index.css 12KB
index.css 11KB
index.css 11KB
index.css 11KB
index.css 11KB
index.css 11KB
index.css 11KB
index.css 11KB
index.css 11KB
becandy.css 11KB
becandy.css 11KB
becandy.css 11KB
becandy.css 11KB
becandy.css 11KB
becandy.css 11KB
index.css 11KB
index.css 11KB
index.css 11KB
index.css 11KB
index.css 11KB
becandy.css 11KB
index.css 11KB
index.css 11KB
index.css 11KB
index.css 11KB
index.css 11KB
becandy.css 10KB
cms.css 10KB
center_index.css 10KB
index.css 10KB
index.css 10KB
index.css 10KB
index.css 10KB
index.css 10KB
index.css 10KB
index.css 10KB
bencandy.css 10KB
bencandy.css 10KB
ui.css 10KB
fenlie_bencandy.css 10KB
stg_becandy.css 10KB
fenlie_bencandy.css 10KB
fenlie_bencandy.css 10KB
fenlie_bencandy.css 10KB
fenlie_bencandy.css 10KB
bencandy.css 10KB
bencandy.css 10KB
bencandy.css 10KB
bencandy.css 10KB
bencandy.css 10KB
bencandy.css 10KB
style.css 10KB
index.css 10KB
fenlie_index.css 10KB
index.css 10KB
index.css 10KB
index.css 10KB
index.css 10KB
index.css 9KB
index.css 9KB
index.css 9KB
index.css 9KB
index.css 9KB
index.css 9KB
index.css 9KB
共 10407 条
- 1
- 2
- 3
- 4
- 5
- 6
- 105
zghelp
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
前往页