Really pretty clueless on JS

This is a discussion on "Really pretty clueless on JS" within the JavaScript Forum section. This forum, and the thread "Really pretty clueless on JS are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 20th, 2006, 10:17
Reputable Member
Join Date: Oct 2006
Location: UK
Age: 25
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to cullinanweb Send a message via Skype™ to cullinanweb
Unhappy Really pretty clueless on JS

Hi there,

i am hoping for some urgent help. A page i have created www.giselewirral.co.uk/fashion_show.php for a client uses php to generate the gallery. However it also uses 'lightbox' to put it in pretty frames.

If the user clicks an image before all have loaded it just takes them to the location of the image, and the rest of the page stops loading.

I want to put a div (loadinga (not miss spelt)) that fills the screen with a loading image and text to explain what is happening to prevent the user clicking.

when the processing is finished i want the div to have display:none
Any ideas? The code of the gallery is included below:

FASHION_SHOW.PHP


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Gisele Boutique, Heswall, Wirral</title>
<meta name="description" content="Giselle Boutique Heswall. the boutique with a difference. For Ladies clothing, footwear and accessories." />
<meta name="keywords" content="gisele,boutique,ladies clothing,different clothing,clothes, bags, handbags,shoes,high heels,accessories" />
<link href="css/screen.css" rel="stylesheet" type="text/css" />
<link href="css/lightbox.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script></head>
<?php include ("includes/functions.php");?>
<body>
<div id="wrapper2">
<h1>Fashion Show Gallery </h1>
<p><strong>Usage:</strong></p>
<p>To view a larger version of any image simply click on it. To move to the next or previous image press N or P respectively, whilst in the larger view.</p>
<p><strong>To Purchase: </strong></p>
<p>To purchase any of the clothes shown please call in. <span class="float"><a href="index.php"><img src="images/logo.jpg" alt="Gisele" width="223" height="130" border="0" /><p>Return to Home</p></a></p></span>
<div id="gallery"><?php gallery() ?></div>
<div id="footer"><p>&copy; Gisele 2006 | Designed by <a href="http://www.cullinanweb.co.uk">Cullinan Web Design</a></p>
</div>
</div>
</body>
</html>

FUNCTIONS.PHP

<?php
function gallery(){
$dh=opendir('/wamp/www/giselle/images/fashion');
while ($file = readdir($dh))
if ($file != "." AND $file != ".." AND $file !="Thumbs.db")
echo '<a title="Press P for the previous image and N for the next image" rel="lightbox[1]" href="images/fashion/'.$file.'"><img src="phpthumb/phpThumb.php?src=../images/fashion/'.$file.'&amp;h=120&amp;w=120" alt="'.$file.'" border="0" /></a>';
closedir($dh);
}
?>
Reply With Quote

  #2 (permalink)  
Old Oct 20th, 2006, 20:48
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: Really pretty clueless on JS

You could try having a div the width and height of your page with a z-index such that it sits above everything else.

Set its position: absolute and it s top and left attributes as required.

When the page is fully loaded, call a JavaScript function to change its display to none.
Reply With Quote
Reply

Tags
divs, getobject, help, javascript

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pretty please review my site thank you! computerpeople Free Web Site Critique 10 May 19th, 2008 00:21
New and clueless dhall Introduce Yourself 8 Aug 21st, 2007 15:49
Textured backgrounds with pretty bits wickedmoon Web Page Design 2 Aug 19th, 2007 22:08
im pretty sure the answer to this question is no but.... heyo Web Page Design 2 Mar 2nd, 2007 21:39
Hello I'm clueless! sarahrobin Introduce Yourself 4 Feb 15th, 2007 08:46


All times are GMT. The time now is 22:49.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43