Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Client Side Scripting
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 10-25-2009, 12:42 PM
  #1
ToshNeox
Battler (Level 3)
 
ToshNeox's Avatar
 
Join Date: Aug 2009
Posts: 27
iTrader: (0)
ToshNeox is an unknown quantity at this point
Exclamation Content Change

Ok, right, so I have some pictures in a table (Question1) and some text (Question2).

Question 1
Is there a way of having a loading picture before the original image shows up?

Question 2
Is there a way of having a loading picture before the text shows?

This is only 'cause i would like some text that 'kinda looks like it's loading first, or a delay.

I have an 'Agree' box on my website so that when people enter, they have to agree to certain terms first. Is there a way of having a checkbox underneath saying 'Do not show me this page again.' and when they select that, it stores a cookie or something so that they don't see the page again?

The site:
http://www.tc-ua.piczo.com/

Give me your comments and ideas. Thanks; ToshNeox
ToshNeox is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 10-25-2009, 01:21 PM
  #2
Pegasus
Extremely Flighty Admin
 
Pegasus's Avatar
 
Join Date: Nov 2001
Location: 35º South of Santa Claus
Posts: 21,471
iTrader: (0)
Pegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to all
What you want to do can't be done with HTML alone. It'll take, at the very least, Javascript. I've moved this thread over to the appropriate forum for you.
__________________


Decaf is the root of all evil...
HTMLForums Awards 2008
Pegasus is online now   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 10-29-2009, 12:52 PM
  #3
nickbfromct
Aspirant (Level 2)
 
nickbfromct's Avatar
 
Join Date: Aug 2009
Posts: 16
iTrader: (0)
nickbfromct can only hope to improve
Smile

i don't have a lot of time to explain but you need to look into these things...

javascript:

Code:
var image1 = new Image();
var image2 = new Image();

image2.src = imageThatSaysLoading.jpg;
image1.src = pictureThatIsLoading.jpg;

// in your HTML you need to attach the "id" attribute to your <img> tag
// id="theImage"  - example - <img src="myDumbImage.jpg" id="theImage" />

if(image1.complete != true)
{
     document.getElementById('theImage').src = image2.src;
}else{
     document.getElementById('theImage').src = image1.src;
}
If that doesn't work then I am a retard.

Last edited by nickbfromct : 10-29-2009 at 12:54 PM.
nickbfromct is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 02:30 PM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.