Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Loading message code......
Old 10-24-2008, 08:27 AM Loading message code......
webmaster flex's Avatar
Extreme Talker

Posts: 160
Name: Webmaster flex
Trades: 0
Hi,
Does anybody know a code, that will make text appear on my website, but Dissapear when the page is loaded.
Help is much appriciated !
webmaster flex is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-24-2008, 07:57 PM Re: Loading message code......
webmaster flex's Avatar
Extreme Talker

Posts: 160
Name: Webmaster flex
Trades: 0
wow its dead in here, is my question not clear enough
webmaster flex is offline
Reply With Quote
View Public Profile
 
Old 10-24-2008, 10:48 PM Re: Loading message code......
Sean@WMS's Avatar
Skilled Talker

Posts: 52
Name: Sean Connors
Location: Eureka, CA USA
Trades: 0
Your question is not put well.

Are you saying you want something to appear while the page is loading and then that disappears once the page has loaded?

Is this for a landing page? If so, I don't see how it can be done at nothing will show until the page has loaded; if it's a transitional within the site -- going from one page to another on the site, then there are options.

Please redescribe your question as it just doesn't make sense really.
__________________
Web Merchant Services

Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE
Sean@WMS is offline
Reply With Quote
View Public Profile Visit Sean@WMS's homepage!
 
Old 10-25-2008, 12:32 AM Re: Loading message code......
Extreme Talker

Posts: 189
Trades: 0
you could put some text on the page and use javascript to remove it when page has loaded.

but this wont work if people have javascript disabled.
simster is offline
Reply With Quote
View Public Profile
 
Old 10-25-2008, 06:03 AM Re: Loading message code......
webmaster flex's Avatar
Extreme Talker

Posts: 160
Name: Webmaster flex
Trades: 0
I have a page on my site with a widget, which takes quite a long time to load, so I wanted to put some text above the widget saying "Loading...please be patient" or something along them lines, then when the page has loaded I want the text to go.
webmaster flex is offline
Reply With Quote
View Public Profile
 
Old 10-27-2008, 11:10 AM Re: Loading message code......
webmaster flex's Avatar
Extreme Talker

Posts: 160
Name: Webmaster flex
Trades: 0
no help on this 1 then !
webmaster flex is offline
Reply With Quote
View Public Profile
 
Old 10-27-2008, 11:46 AM Re: Loading message code......
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
It will have to be built into the "widget"

"It" knows when it starts loading and only "it" knows when it has loaded.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-27-2008, 12:46 PM Re: Loading message code......
webmaster flex's Avatar
Extreme Talker

Posts: 160
Name: Webmaster flex
Trades: 0
does the page not finish loading when the widget is loaded?
webmaster flex is offline
Reply With Quote
View Public Profile
 
Old 10-27-2008, 12:58 PM Re: Loading message code......
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Maybe, maybe not. Really depends on what the "widget" is
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-27-2008, 01:20 PM Re: Loading message code......
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
HTML Code:
<html>
<head>
<title>Example</title>
<script type="text/javascript">
window.onload=function() {
document.getElementById("message").style.display="none";
}
</script>
</head>

<body>
<span id="message">Hello World</span>
</body>
</html>
If the so-called "widget" loads on page-load, the above (very simple) example will work. The key is to have an ID on the element you wish to dissappear when the page loads, then target it with JavaScript and an onload event.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 10-28-2008, 07:11 PM Re: Loading message code......
webmaster flex's Avatar
Extreme Talker

Posts: 160
Name: Webmaster flex
Trades: 0
great, works like a treat. thanks
webmaster flex is offline
Reply With Quote
View Public Profile
 
Old 10-28-2008, 09:28 PM Re: Loading message code......
JohnDiamond's Avatar
Extreme Talker

Posts: 171
Name: John Diamond
Trades: 0
I'm curious to see it in action. Would you mind giving us the link to your site?
__________________
John

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
JohnDiamond is offline
Reply With Quote
View Public Profile
 
Old 10-29-2008, 07:08 AM Re: Loading message code......
webmaster flex's Avatar
Extreme Talker

Posts: 160
Name: Webmaster flex
Trades: 0
not quite yet, its still working progress
webmaster flex is offline
Reply With Quote
View Public Profile
 
Old 11-05-2008, 10:33 AM Re: Loading message code......
Experienced Talker

Posts: 34
Trades: 0
The best way to do this, which is kind of odd to want, is to use some PHP code with a conditional statement.

if(codition) {
echo "Text";
} elseif(condition) {
echo "";
}
__________________

Please login or register to view this content. Registration is FREE
pingeyeg is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Loading message code......
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.36423 seconds with 12 queries