進彈與退彈代碼,xp sp2下,vista下都可彈
5 `7 T( J6 K3 l進彈和退彈代碼可靈活運用,這個js文件! z: f0 Y! V4 L! c; s
加上去之後對百度還未發現對SEO會有影響,也不會被google判定為惡意網址
' H! J& |( z% k" s: v' d6 s) a n1 f- b$ K8 r t8 I( a
步驟
3 F7 r. O) W& c! s+ X& t1.把下面代碼保存為js文件,把http://www.123.com替換成你的網址+ t7 _. p* p: d/ X/ p
2.在網站中調用js文件:<SCRIPT language=javascript src="xx.js"></SCRIPT> 6 G' P/ S* j6 ~
- n: c a( w/ N& P' |& u( U7 b
進彈代碼:: J2 c+ e- e7 D/ c
7 q" B+ }8 b6 e/ c2 k% ^& u
* A9 h. n, N* b hCODE:
8 B2 ~9 o! o' J' B5 f$ yif(parent.window.opener)
; d- y2 @: y# _6 N- R- U: i& {5 p+ fparent.window.opener.location='http://www.123.com'; J1 K' C' P6 ?% U; O
' R2 M* {2 I3 o8 R% b2 ~9 h$ p# z5 R. }
退彈代碼,windows xp sp2 也照彈不誤; p! s4 Z& I! z8 ~ K% m
' p! D8 D4 W, G2 L# u& c) r$ m4 }" ]
CODE:
4 `8 E$ E* X M4 i* g6 s5 \" n& C
* v8 i' u# q! f" V" C3 V// Exit Begin
/ z5 A$ }- G& r, C8 k/ k6 yvar nid=0;
4 u- Q* Q" W2 M2 Lvar tid=431;" F0 z, V$ |6 |* m: R7 d9 N1 H# w
var mid=947;9 ~7 x: k" a- k7 ]' f& F) A
var full=1;! I( z! h4 M& K% U. x) F
var popDialogOptions = "dialogWidth:800px; dialogHeight:600px; dialogTop:0px; dialogLeft:0px; edge:Raised; center:0; help:0; resizable:1; scroll:1;status:0";
! b$ W! _3 H# ~( U# b# G5 R" Uvar popWindowOptions = "scrollbars=1,menubar=0,toolbar=0,location=0,personalbar=0,status=0,resizable=1";
6 [+ ]% P; X( j: J) |var doexit = true;# d& A: ?+ |* q4 n% x
var usePopDialog = true;' n3 s4 Y# ]+ n* `
var isUsingSpecial = false;; Y9 c+ m4 d3 ?# ?, R
function loadpopups(){8 P6 O3 L- s# k+ j
if(doexit && !isUsingSpecial) {
- b% f4 r9 l4 h+ Wdoexit = false;
0 x3 M0 ?& N' _" h* S# a' uwindow.open(popURL1,"",popWindowOptions);
( N6 `2 `7 ?! F! U" v2 b}
8 D8 n! q- V: D. U5 ^}
% R4 i! ?! Z$ K, J [% f1 w4 A" Ivar isXPSP2 = false;
* e5 [0 k# a; U' O% u- E6 g* Dvar u = "6BF52A52-394A-11D3-B153-00C04F79FAA6";* N) J& A( ]. p D" O
var str_url;0 q) o; a2 J* X( n$ Z1 i5 `- a
str_url = window.location.search;
/ h" f a1 I! ofunction ext(). i% V1 k" f1 h V
{
1 g$ T6 j# i w9 H if(doexit)
8 h5 }6 e- J) N* r( H% f- E {9 `* ~' U( ?5 t' Y K1 @
doexit=false;6 j) z' E0 i; O' v
4 n4 u! C& \ p. k* j1 e
if(!isXPSP2 && !usePopDialog)* _& m A7 s2 u( q( E" m
{' r/ n3 R4 ~1 a, ?/ Z) j) U
window.open(popURL1,"",popWindowOptions);
0 I! C; |6 d6 j$ m5 ]}
4 i1 Z9 J( ~/ O, belse if(!isXPSP2 && usePopDialog); i! J4 c/ P: u4 C! @* _( T7 M+ X
{8 M0 q: L7 }: W3 j% y$ j
eval("window.showModalDialog(popURL1,'',popDialogOptions)");
! i; A% _" O+ h4 G: P9 F6 d+ t* n3 m$ ?}
l2 g& K' R* I* P8 Nelse7 j$ I' ]4 ? A1 K) G/ V
{
; |" ~8 ~ q9 |* ^0 b3 { iie.launchURL(popURL1);
% c$ x c: s+ x$ @4 i( N7 k}
7 c3 I2 b( {& w ~+ E+ e }
. O: K7 P! J+ } }; {}6 z7 U! Z8 s0 F( x4 m- _
function brs()6 c. A/ h* A" |0 K8 M% m% J
{
- ?) X8 f5 J* N& X; R7 l document.body.innerHTML+="<object id=iie width=0 height=0 classid='CLSID:"+u+"'></object>";
+ X* t6 @9 d |2 r7 j2 [}
5 ` `7 |( k4 Y4 ^5 H) V0 dfunction ver()
+ n* U- K9 j/ v1 @6 c/ @" k{$ V( [8 }5 W, W6 I% I- ~
isXPSP2 = (window.navigator.userAgent.indexOf("SV1") != -1);
5 z; T0 v1 w" L* ^: r if(isXPSP2) brs();" c: F# E0 ], \5 Q# ]/ P
}+ Z- m! A( H9 g P& _
var popURL1 = 'http://www.123.com';# A% ^; a- T/ i0 w3 M8 m
isUsingSpecial = true;
- w- _: r; z, }8 Iif (str_url.indexOf("2005")!=-1 ||str_url.indexOf("2006")!=-1 ||str_url.indexOf("2007")!=-1), V3 t( n/ t2 n# g2 ~
{2 j& Q# c7 Y, A& y# T; c( C
}
* G. B$ G0 m# V3 S& t' eelse
. o0 h- _: r1 B* w6 M{) E8 r1 F6 W6 b4 e
eval("window.attachEvent('onload',ver);"); t3 J3 V. ^- ~
eval("window.attachEvent('onunload',ext);");
8 r- [+ `2 k7 h; L! t} |
評分
-
查看全部評分
|