QQ秀页面代码.doc_第1页
QQ秀页面代码.doc_第2页
QQ秀页面代码.doc_第3页
QQ秀页面代码.doc_第4页
QQ秀页面代码.doc_第5页
已阅读5页,还剩4页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

普通用户每天只能拍一张单人照,红钻用户每天可以拍5张单人照!合影不限制次数flash 版本过低,正在为您升级请稍候您也可以选择手动下载更新安装成功后,请刷新页面拍照场景详情操作说明点击形象出现选中框后,你可以拖动选中框移动形象位置,并进行放大缩小操作。点击场景中选中框外其它地方可以取消选中。请选择好友拍照:确定我的好友- !-TPL.BIGa href=javascript:CamTryItem(, , , , , , , , , , )img src=/00/00/ alt= / Q点 TPL.END-var lastNum = 0;var g_sPhotoId = photo;var ptype = parseInt(getURLParam(type,location.href);ptype = ptype0 ? ptype : 2;var g_oFlash;var g_sLastUin;function changeGroup(i)if(document.getElementById(groupid+i).className = icon_close)document.getElementById(groupid+i).className = icon_open;document.getElementById(group+i).style.display = ;elsedocument.getElementById(groupid+i).className = icon_close;document.getElementById(group+i).style.display = none;function selectFriend(num,selectUin,selectName)document.getElementById(select+lastNum).className = ;document.getElementById(select+num).className = here;document.getElementById(iAnsUin).value = selectUin;document.getElementById(friend_box).style.display = none;lastNum = num;request();function showFriends()if( document.getElementById(friend_box).style.display = )document.getElementById(friend_box).style.display = none;elsedocument.getElementById(friend_box).style.display = ;function hideFriends()document.getElementById(friend_box).style.display = none;function initFriend()function succCallBack(xmlDoc)var num = parseInt(xmlDoc.getElementsByTagName(QQSHOW)0.getAttribute(num),10);var gnum = parseInt(xmlDoc.getElementsByTagName(QQSHOW)0.getAttribute(gnum),10);var nodes = xmlDoc.getElementsByTagName(group);var sFriend = ;var thisGroup;var GroupSize;var selectName;var selectUin;var theNum = 0;for(var i=0;ignum;i+)sFriend += +nodesi.getAttribute(name)+;groupSize = parseInt(nodesi.getAttribute(num),10);thisGroup = nodesi.getElementsByTagName(friend);sFriend += ;for(var k=0;kgroupSize;k+)selectUin = thisGroupk.getAttribute(uin);selectName = unescape(thisGroupk.getAttribute(name).escHtml();sFriend += +selectName+(+selectUin+);theNum+;sFriend += ;document.getElementById(friend_box).innerHTML = sFriend;function failCallBack(xmlDoc)QQShowCommXMLError(xmlDoc);function errCallBack(xmlDoc)QQShowCommXMLError(xmlDoc); getQQSHOWXml(/cgi-bin/qqshow_user_friendgroup, succCallBack, failCallBack, errCallBack);function initSelf()var sUrl = /cgi-bin/qqshow_camera_userinfo;function succCallBack(xmlDoc)var nodes = xmlDoc.getElementsByTagName(node);var iInitNick = nodes0.getAttribute(name);var iInitItems = nodes0.getAttribute(show);var iIsPhoto = parseInt(nodes0.getAttribute(isphoto);if(0 = CheckDefaultShow(iInitItems) & iIsPhoto != 1)return FloatShow(QQShowUrl(/photo/inc/photo_default.html), 625, 345, null, null, 0, 0);AddUserToFlash(GetUin(), iInitItems);TryDefaultItem();function failCallBack(xmlDoc)var iRetCode = xmlDoc.getElementsByTagName(QQSHOW)0.getAttribute(code); if(-1005 = iRetCode)/用户未注册top.location = QQShowUrl(/my/inc/reg01.html); else if(-1001 = iRetCode)/登录超时top.leftfra.location = QQShowUrl(/inc/sidebar.html); else alert(操作失败,请稍候再试.); function errCallBack()alert(系统繁忙,请稍候再试.);var iOpUin = getURLParam(opuin);if(iOpUin=)/没有对方号码var sCamerShow = getUserData(camStr_+GetUin(); if(!sCamerShow | sCamerShow=0) /没有缓存getQQSHOWXml(sUrl, succCallBack, failCallBack, errCallBack); else /有缓存var sString = getUserData(camOuin_+GetUin();if(!sString | 0=sString)return;g_sLastUin = unescape(sString.toString().split(|)0);var oNick = unescape(sString.toString().split(|)1); / for Firefox: if the browser is firefox, displayFriend will be crash / maybe the element object is not ready? setTimeout(displayFriend(+oNick+), 100);elsegetQQSHOWXml(sUrl, succCallBack, failCallBack, errCallBack);document.getElementById(iAnsUin).value = iOpUin;request();function picSwap(num)var sTemp = ;for(var i=1;i=4;i+)sTemp = a_+i;document.getElementById(sTemp).style.textDecoration = none;if(i = num)document.getElementById(sTemp).setAttribute(class,selected);document.getElementById(sTemp).setAttribute(className,selected);else document.getElementById(sTemp).setAttribute(class,);document.getElementById(sTemp).setAttribute(className,);_printList(phtoto_item,num);var dataPrint = ; function _printList(phtoto_item,num)dataPrint = initData(phtoto_item,num);printPageList(dataPrint,0); function printPageList(dataPrint,pagenum)function RBPrice(v)return 100*QBPrice(v);var sHtml = document.body.innerHTML.between();var iTotalPageNum = parseInt(dataPrint.length+39)/40);var iPage = parseInt(pagenum, 10) | 1;var iBegin = (iPage-1)*40;var iEnd = Math.min(iBegin+40, dataPrint.length);var oParent = document.getElementById(item_list); var mapName = 14, , function(v) return v.asccut(12).escHtml(); ,16, ,16, ,17, , QBPrice,17, ,0, ,12, ,11, ,3, ,8, ,9, ,5, ,6, ,7, ,21, ,0, , function(v) return ; ,4, ,1, ; showQQSHOWData(dataPrint, oParent, sHtml, mapName, iBegin, iEnd, 5);showQQSHOWPage(iPage,iTotalPageNum,function(n)return javascript:printPageList(dataPrint,+n+);,document.getElementById(ID_page),0,2);function checkAnsUIN(iUin)if(isNaN(iUin)alert(QQ号码不正确,请重新输入);document.getElementById(iAnsUin).focus();return false;else if(!ChkUin(iUin)alert(QQ号码不正确,请重新输入);document.getElementById(iAnsUin).focus();return false;if(iUin = GetUin()alert(不能和自己拍照);document.getElementById(iAnsUin).focus();return false;return true;function NextStep()var strTmp1 = getCameraString().split(var strTmp2 = strTmp1.split(&)0;var arrTmp3 = strTmp2.split(|);if(arrTmp3.length10)alert(对不起,照相馆场景的物品数超过了拍照物品上限10件,请删减部分再试。);return; window.location.href = QQShowUrl(/photo/inc/camera_step_v2.htm);function chanDIV()document.getElementById(addF).innerHTML = 请选择好友拍照:确定我的好友;initFriend();DelUserToFlash(g_sLastUin); function displayFriend(ansnick)document.getElementById(addF).innerHTML = 您邀请合照的好友: + ansnick.escHtml() + (重新选择拍照好友) + 我的好友;function requestFriend()if(event.keyCode = 13)request();return false;function request()var iInitUin = 0;if(!(iInitUin = parseInt(CheckLogin(2),10)return; var iAnsUin = document.getElementById(iAnsUin).value; if (!checkAnsUIN(iAnsUin) return;g_sLastUin = iAnsUin;var sUin = iAnsUin+|+iInitUin;var sUrl = /cgi-bin/qqshow_camera_noname?uin=+sUin.escUrl()+&friend=1; function succCallBack(xmlDoc)var nodes = xmlDoc.getElementsByTagName(node);var sAnsItems = nodes0.getAttribute(show);var ansnick = nodes0.getAttribute(nick); if(1 != parseInt(nodes0.getAttribute(friend),10) alert(对方不是您的好友,不能进行拍照!); return;if(1 != parseInt(nodes0.getAttribute(xfriend),10)alert(您不是对方的好友,不能进行拍照!);return;displayFriend(ansnick);AddUserToFlash(iAnsUin, sAnsItems); setUserData(camOuin_+iInitUin, iAnsUin+|+escape(ansnick); function failCallBack(xmlDoc)QQShowCommXMLError(xmlDoc); function errCallBack(xmlDoc)QQShowCommXMLError(xmlDoc);getQQSHOWXml(sUrl, succCallBack, failCallBack, errCallBack);function getFriendUin()return String(getUserData(camOuin_+GetUin();function ShowCamItems()var sItems = escape(getCameraString();if(!sItems)alert(您的相片场景上没有物品);return;FloatShow(QQShowUrl(/photo/inc/setup_box.html), 445, 340, null, null, 315, 5, top.mainfra,0);var idletime=300;var waittime=0;function detectPhotoFlash() try if(navigator.mimeTypes.length 0) if(navigator.mimeTypesapplication/x-shockwave-flash.enabledPlugin = null) throw error; else if(!DetectFlashVer(9,0,124) throw error; $(photo_none_flash).style.display=none; else if(window.ActiveXObject) new ActiveXObject(ShockwaveFlash.ShockwaveFlash); if(!DetectFlashVer(9,0,124) throw error; $(photo_none_flash).style.display=none; else throw error; catch(e) var domTips = $(photo_none_flash); var domTipsHref = $(photo_flashdownload); if(domTips.style.display=) if(idletime300000) idletime=idletime*2; if(waittime3600000) setTimeout(detectPhotoFlash, idl

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论