English 中文(简体)
如何在黑暗的背景影响中创造装货窗口
原标题:How can we create loading window in dark background effect

我们要指出,黑暗的背景效应(通常我们用于图像包裹)是用来打一个页。 实际上,我们有超文本形式,只有文本雷塔盒和提纲。 我们只是从PHP获得数据。 在这里,我们要以黑暗的背景影响来实施 Lo的形象。 当整个数据在屏幕上打印时,带黑暗背景的图像又回到正常背景。

增 编

Rodger

最新情况:- 利用该法典从实验室档案中获取价值。 我在阿贾克斯/联合材料中开端,如果任何人能够给我提供法典结构,这对我们有利。

var anchorUrl2 =  script.php ;
var anchorPars1 =  sqt=abcsd ;
var anchorAjax2 = new Ajax.Updater(  div-id , anchorUrl2, { method:  get , parameters: anchorPars1 });
问题回答
  • On form submit append a div to body tag
  • Set this div s position to fixed, width and height to window s width and height
  • Assign a semi-transparent black PNG as it s background
  • Write a text inside saying Please wait
  • Use a callback function when ajax request done to remove this div

就此而言,该法典应当作解释性解释。 这部法律是 j的法典,但你可以把这一想法带走。

<script type="text/javascript>
  $(document).ready(function(){
    $("#contentToHideWhileLoading").hide();
    $("#contentToShowWhileLoading").show();
    $.get(url, {parameters: anchorPars1}, function(data){
        $("#placeToAppendTo").append(data.dataToAppend);
        $("#contentToShowWhileLoading").hide();
        $("#contentToHideWhileLoading").show();
        $("#placeToAppendTo").show(); // if it wasn t visible yet
    });
  });
</script>




相关问题
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.

热门标签