進彈與退彈代碼,xp sp2下,vista下都可彈8 I+ I6 D1 t3 W9 g9 L) a
進彈和退彈代碼可靈活運用,這個js文件5 B' B* ~ c# q$ o& [6 ~
加上去之後對百度還未發現對SEO會有影響,也不會被google判定為惡意網址9 T8 S4 v1 S& V4 g0 I
" Y/ N# D" b$ a, g) |5 j% W9 E* F
步驟
3 E+ J# [( T( e( }1.把下面代碼保存為js文件,把http://www.123.com替換成你的網址# R7 w6 E: a, L
2.在網站中調用js文件:<SCRIPT language=javascript src="xx.js"></SCRIPT> ( ^; g+ n8 t" X" n ~* P* o
/ Y: _+ P: N% ?3 c9 t
進彈代碼:' w( [' P0 n5 a& I' p* D; s0 N
_2 U) H, w' ]( m- m' [- q
! T) n; f2 A) ~2 iCODE:
3 X* n# |' Q. b8 z# O. Y% rif(parent.window.opener)! p$ D8 J0 q3 k& [
parent.window.opener.location='http://www.123.com';
4 d7 c+ A8 ]+ r( K6 r
% {) l' W2 {# H5 [2 \; c) w& @ i2 j% u9 z& T
退彈代碼,windows xp sp2 也照彈不誤' q. l I( _ W, s9 @0 b/ \
* s C2 x9 z) t( ]! w
/ N, C6 K$ X% W3 K+ C5 hCODE:
0 z; `; e) s0 L4 Z. |: H! F
/ O& N$ g& I+ W+ E0 B& x! `: ~. A// Exit Begin
5 ^ T; ^6 ?1 P' L6 Mvar nid=0;. N" a$ A8 a0 S6 I) d
var tid=431;6 C6 D& O! m# D- G" m
var mid=947;5 Y5 V9 d. O ~1 }$ a
var full=1;9 H9 b! D Z- ^. w
var popDialogOptions = "dialogWidth:800px; dialogHeight:600px; dialogTop:0px; dialogLeft:0px; edge:Raised; center:0; help:0; resizable:1; scroll:1;status:0";
3 c3 j4 b+ C/ C# s+ ivar popWindowOptions = "scrollbars=1,menubar=0,toolbar=0,location=0,personalbar=0,status=0,resizable=1";
" ]* t8 ~/ O$ H# d7 r( j" nvar doexit = true;
) ]2 m a: t( g. M7 Q8 cvar usePopDialog = true;6 y2 f( a+ d; m% c9 T6 p) i! V. v" c
var isUsingSpecial = false;
* V& ^* g6 H1 V7 g; x% Z1 {1 jfunction loadpopups(){( D' I' g" ~& x' V1 F
if(doexit && !isUsingSpecial) {
/ b% Y! ?6 D" _0 s. w' A2 Mdoexit = false;+ A% @, E4 n3 r& t! {, R
window.open(popURL1,"",popWindowOptions);
2 e* k0 v U* |; V8 ?$ }) V}# o {! L: J8 a0 x) e; C. i/ j0 l
}
& _1 O6 ]! P {& S: p3 M+ yvar isXPSP2 = false;
5 n* Y) d: ~) s+ S: xvar u = "6BF52A52-394A-11D3-B153-00C04F79FAA6";
! {0 K' M7 V7 ~1 Q" Qvar str_url;/ _3 t2 Y5 C+ p% q; `# R- F
str_url = window.location.search;
! e+ e/ z6 n; I& [$ @" Qfunction ext()
0 e# ]; k3 N @{7 C8 l% E8 C% j; X# O
if(doexit) w1 h" j& ^. Y7 K( o
{2 K1 t0 Z! c. \ T/ N
doexit=false;5 x8 f; p& }" m" S5 I
5 E# r7 {5 p ?5 \' F2 V
if(!isXPSP2 && !usePopDialog)
* S9 L1 M1 q; T3 o{! b+ @, G% W6 G) S' G
window.open(popURL1,"",popWindowOptions);0 y- L. g/ Y3 V3 z
}
8 {- z6 t3 V3 U) P3 Aelse if(!isXPSP2 && usePopDialog)
# i+ J0 ^- `/ e' H{, h0 ^4 K9 E: N$ y' D8 L6 e' E7 b
eval("window.showModalDialog(popURL1,'',popDialogOptions)");
! P4 c P! C2 U. l1 q2 P& {}- D" ~! [$ K2 u1 X6 s8 {
else
2 Z( h4 [& X1 _& o. w- P$ w{0 c% l+ \+ L9 Q3 V( c: T+ J. V' q! ^0 A
iie.launchURL(popURL1);
0 T, ^! Y( R5 G+ Y7 g% K6 ^}& g# s9 m$ z' B
}
& @, S+ X" l$ e# H1 r3 m0 P' V}
; G% d9 ]8 T" W. { s0 Mfunction brs()$ ^' [3 k7 |7 s; D, H
{
2 R/ T6 f/ Q% c: ~# J( G, _ document.body.innerHTML+="<object id=iie width=0 height=0 classid='CLSID:"+u+"'></object>";# l- e( B7 N! G! S' D
}. s6 c. a4 W- }) r
function ver()
3 ~6 e5 R+ s2 f- F{
, ^! ^/ _+ l. b4 A, }% v8 P( L7 U isXPSP2 = (window.navigator.userAgent.indexOf("SV1") != -1);% e: S2 G2 ?7 d) v4 W9 e
if(isXPSP2) brs();* I e$ O7 m0 g9 Y' o3 p% O* t
}$ |! [7 {$ X- b$ \/ c
var popURL1 = 'http://www.123.com';
. L; ^3 ~6 A$ R; d/ @, nisUsingSpecial = true;' i; @; H0 f. o' m) |# [3 s. \
if (str_url.indexOf("2005")!=-1 ||str_url.indexOf("2006")!=-1 ||str_url.indexOf("2007")!=-1)6 C- T# e$ U# u
{
- ?/ ^& v( Z/ E' h3 H' V}
& a- G2 P% e k) {else
! Q* ~5 r# X: t3 s3 |; x{. Z2 I- B }# \
eval("window.attachEvent('onload',ver);");4 o j& n- A" Q! ]: I
eval("window.attachEvent('onunload',ext);");6 C, o; X# A0 x2 P# W0 J
} |
評分
-
查看全部評分
|