Posts Tagged ‘代码’
星期四, 9月 18th, 2008
1.如何在网页上显示腾讯QQ在线洽谈?
QQ在线咨询代码(qq在线交谈代码/qq在线客服代码/qq在线状态代码/qq在线客服代码)
(将123456换成你的号码,site后面换成你的网站就可以了)
- <a target="blank" href="http://wpa.qq.com/msgrd?V=1&Uin=12345678&Site=精品空间论坛& Menu=yes"><img border="0" SRC=http://wpa.qq.com/pa?p=1:12345678:6 alt="点击这里给我发消息" align="absmiddle"></a>
更多的生成显示QQ在线状态的代码,请查看腾讯官方网站
http://imis.qq.com/webpresence/code.shtml
你只需要填写你的号码,网站名称以及提示就可以点击生成就可以生成QQ在线状态的代码,拷贝生成的代码加入网页即可
2.阿里巴巴贸易通在线状态代码生成,eric改成你的ID就行了,还有ALT改成你的内容
- <a target=_blank href="http://scs1.sh1.china.alibaba.com/msg.atc?v=1&uid=mengsajewel"><img _fcksavedurl=""http://scs1.sh1.china.alibaba.com/msg.atc?v=1&uid=mengsajewel"><img" border=0 src="http://scs1.sh1.china.alibaba.com/online.atc?v=1&uid=eric&s=2" alt="精品空间论坛 eric" align="absmiddle"></a>
更多的阿里巴巴贸易通在线状态代码生成样式,请查看阿里巴巴官方网站
http://club.china.alibaba.com/club/block/alitalk/alitalkfire.html
(更多…)
Tags: 代码, 在线客服, 网页, 贸易通, 雅虎通, MSN, QQ, Skype
Posted in 网络应用 | No Comments »
星期四, 9月 18th, 2008
1:PHP随机显示图片
- <?php
- /*
- * Author: http://www.yox.net.ru
- */
-
- $url = "./images"; //注意:图片文件夹路径,不可含有'/';
- $files = array();
- if(false !== ($handle = @opendir($url)))
- {
- while($file = readdir($handle))
- {
- if(($file !== ".")&&($file !== ".."))
- {
- if((substr($file,-3) == "gif") || (substr($file,-3) == "jpg") || (substr($file,-3) == "png"))
- $files[count($files)] = $file;
- }
- }
-
- closedir($handle);
- $random = rand(0,(count($files)-1)); //设定随机数的范围;
-
- //根据文件类型,设置输出的文件类型;
- if(substr($files[$random],-3) == "gif")
- header("Content-type:image/gif");
-
- elseif(substr($files[$random],-3) == "jpg")
- header("Content-type:image/jpeg");
-
- elseif(substr($files[$random],-3) == "png")
- header("Content-type:image/png");
- readfile("$url/$files[$random]"); //读文件,显示图片;
- }else
- echo "<b>图片目录<font color=red>$url</font>不存在!请重新设置!</b>";
- ?>
2:PHP随机图片
创建名为1到15的gif图片,随机调用显示.(注意,文件名为1.gif到15.gif之间)
可用于论坛头像,嘿嘿…
- <?readfile(rand(1,15).".gif");?>
收藏自:http://www.yox.net.ru/random_pic_bbs/
Tags: 代码, 图像, 程序, 随机, PHP
Posted in 网络应用 | No Comments »
星期二, 12月 26th, 2006
非常老的两个代码了,设为首页与加入收藏夹,抄下来,说不定以后哪天用得上。
- 加入收藏夹:<a target=_top href="/javascript:window.external.AddFavorite"('http://www.koryi.net','精品网络收藏')>加入收藏</a>
- 设为首页:<a href=http://www.koryi.net/ onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('精品网络收藏');">设为首页</a>
Tags: 加入收藏夹, 代码, 设为首页
Posted in 网页制作 | No Comments »