popups


i have following code on site. have 2 different boxes show up. best way it?

 


// position modal box in center of page     jquery.fn.center = function () {         this.css("position","absolute");         this.css("top", ( jquery(window).height() - this.height() ) / 2+jquery(window).scrolltop() + "px");         this.css("left", ( jquery(window).width() - this.width() ) / 2+jquery(window).scrollleft() + "px");         return this;       }      jquery(".modal-profile").center();      // set height of light out div       jquery('.modal-lightsout').css("height", jquery(document).height());           jquery('a[rel="modal-profile"]').click(function() {         jquery('.modal-profile').fadein("slow");         jquery('.modal-lightsout').fadeto("slow", .5);     });      // closes modal box once close link clicked, or if lights out divis clicked     jquery('a.modal-close-profile, .modal-lightsout').click(function() {         jquery('.modal-profile').fadeout("slow");         jquery('.modal-lightsout').fadeout("slow");     }); 

 

 

and html:

 

<div class="modal-lightsout"></div>

<div class="modal-profile">

    <h2>file upload</h2>

    <a href="#" title="close window" class="modal-close-profile"><img border="0px" src="http://mysite.com/images/x.png" alt="close profile window" /></a>

   

    <iframe src="http://mysite.com/images/upload.php" scrolling="no" width="350px" height="400px" frameborder="0"></iframe>

    </div>

moved server-side applications forum dreamweaver general forum. isn't server-side issue. it's jquery, client-side.



More discussions in Dreamweaver support forum


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support