Copy the codeThe code is as follows:
<script type="text/javascript">
varconfig='6|0xffffff|0x0099ff|50|0xffffff|0x0099ff|0x000000';
varfiles='https:///bbs/attachments/month_1001/|https:///bbs/attachments/month_1001/|https:///bbs/attachments/month_1001/|https:///bbs/attachments/month_1001/|https:///bbs/ttachments/month_1001/|https:///bbs/attachments/month_1001/';
varlinks='?id=36&cid=42&Lid=34|?id=36&cid=42||/|/|:///';
vartexts='[Template Enrollment] Huawei 2009 PPT Template | [Template Enrollment] China Mobile Aid Boston 2009 PPT Template | Super cool CIG enterprise demonstration PPT | Urgent: three-dimensional matching and wrong numbers | 2010 standard new | Painted axis opening, calligraphy animation, painting axis closing';
varflashvars=[
'config='+encodeURIComponent(config)
,'files='+encodeURIComponent(files)
,'links='+encodeURIComponent(links)
,'texts='+encodeURIComponent(texts)
].join("&");
('<object class codebase="/pub/shockwave/cabs/flash/#version=6,0,0,0" width="100%" height="198">');
('<param name="movie" value="https:///bbs/images/xshow/" />');
('<param name="quality" value="high" />');
('<param name="menu" value="false" />');
('<param name="wmode" value="transparent" />');
('<param name="flashvars" value="'+flashvars+'" />');
('<embed src="https:///bbs/images/xshow/" wmode="opaque" flashvars="'+flashvars+'" menu="false" quality="high" width="100%" height="198" type="application/x-shockwave-flash" pluginspage="/go/getflashplayer" />');
('</object>');
</script>
After testing, you can process links separately
('<param name="FlashVars" value="pics='+pics522+'&links='+encodeURIComponent(links522)+'&texts='+texts522+'&borderwidth='+focus_width522+'&borderheight='+focus_height522+'&textheight='+text_height522+'">');
js encoding encodeURIComponent
js encodes text with 3 functions: escape, encodeURI, encodeURIComponent, and the corresponding 3 decode functions: unescape, decodeURI, decodeURIComponent
1. When passing parameters, you need to use encodeURIComponent so that the combined url will not be truncated by special characters such as #.
For example:
2. When performing url jump, you can use encodeURI as a whole.
For example: ="/encodeURI"("https:///s?word=Baidu&ct=21");
3. You can use escape when using data in js
For example: Search history records in the collection.
4. When escape encodes unicode values other than 0-255, the %u**** format is output. In other cases, escape, encodeURI, and encodeURIComponent encoding results are the same.
The most used one should be encodeURIComponent, which converts special characters such as Chinese and Korean into UTF-8 format url encoding. Therefore, if you need to use encodeURIComponent to pass parameters to the background, you need to support utf-8 (the encoding method in form is the same as the current page encoding method)
There are 69 characters that do not encode: *, +, -,.,/, @,_, 0-9, a-z, A-Z
There are 82 characters that do not encode encode: !, #, $, &,\', (,), *, +,, -,.,/,:,;,=,?, @,_,~,0-9, a-z, A-Z
encodeURIComponent has 71 characters that do not encode: !, \', (,), *, -,., _, ~, 0-9, a-z, A-Z