<script>
function getInfo()
{
var s = "";
s += " 网页可见区域宽:"+
document.body.clientWidth;
s += " 网页可见区域高:"+
document.body.clientHeight;
s += " 网页可见区域宽:"+ document.bod …
... but when you try to change document.domain back to the original value
you get an error. From Firefox:
Error:
Mozilla and Opera are more strict about the value of document.domain - it
can only be set to the current value …
从Google Analytics剽取的代码。
<script language="JavaScript">
<!--
function _uFlash() {
var f="-",n=navigator;
if (n.plugins && n.plugins.length) {
for (var ii=0;ii<n.plugins.length;ii+ …
一个小项目需要用的flash在页面中的拖动,原理很简单,把flash的点击和释放事件发给js,js控制拖动释放。
AS端代码:
package org.ants.ant{
import flash.display.*;
import flash.external.ExternalInterface;
//
public class Main extends Sprite {
function Main() {
ad …