Jump to content
php.lv forumi

google stila popups


ziedinjsh

Recommended Posts

iisti nestaados priekshaa.. pirmaa rinda

$ = function(ID) { 
return document.getElementById(ID); 
} 
function showContent() {
       $('loading').style.display = 'none';
       $('frame').style.display = 'block';
}

window.onload = showContent;

 

straadaa

Link to comment
Share on other sites

Eh, kā tu nesaproti, ka tu pārdefinē jquery funkciju un pēc tam ceri, ka jquery strādās! Jā, $ ir vienkāršs funkcijas nosaukums.

 

Tas ir tas pats kas...

var a = 5;
...
a = 10;
...
alert(a); //Nez kāpēc ceri, ka te būs 5

Edited by briedis
Link to comment
Share on other sites

mjā.. :D aizgāja

 

viņam jāizskatās šādi

function showContent() {
       $('#loading').hide().fadeOut(500);
       $('#frame').show().fadeIn(500);

}

 

un pat strādā! :D

 

P.S. Paldies Jums! ;)

Edited by ziedinjsh
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...