English 中文(简体)
swfobject &闪光——显示装饰吗?
原标题:swfobject & flash -- display loading animation?

我会问,在热点准备显示之前,是否很容易显示装物的消im? 在这一情况下,Im装载着一个嵌入的Issuu物体,你可以看到一个实例,表明Issuu通过Swfobject 。 根据您的连接速度,通常只有一个空白的白色空间,而热点物体的负荷则很大,如果可能的话,用负荷估算表示进展。 我会想象一下,“贵爱”会在这里服务。

感谢这里的任何方向。

问题回答

In your embed code, you not only pass an id of the tag you want to be replaced by the swf (idOfTagToReplace), but also an id of the tag replacing it (issuuViewer). Right after your call to swfobject, style the latter tag as you like.

var attributes = {
    id:  issuuViewer 
};

var params = {
    allowfullscreen:  true ,
    menu:  false ,
    wmode:  transparent 
};

var flashvars = {
    jsAPIClientDomain:  www.yourdomain.dk ,
    mode:  mini ,
    documentId:  081219132433-764a1eafce5141fda136d10d58bd45f5 
};

swfobject.embedSWF(
    "http://static.issuu.com/webembed/viewers/style1/v2/IssuuReader.swf", 
    "idOfTagToReplace", 
    "420", 
    "264", 
    "9.0.0",
    "swfobject/expressInstall.swf", 
    flashvars, 
    params, 
    attributes
);

var obj = document.getElementById( issuuViewer );
obj.style.backgroundImage =  url(/img/loading.gif) ;
obj.style.backgroundRepeat =  no-repeat ;
obj.style.backgroundPosition =  50% 50% ;




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签