Tanvir
Mar 20 2005, 08:58 PM
| | I want to preload some images with my page and after searching in google I found this code but it doesn't seem to work. Cany anyone tell me what is wrong?
<script language="JavaScript"> <!-- Image1= new Image() Image1.src = "Slice3_over.gif" Image2 = new Image() Image2.src = "Slice4_over.gif" Image3 = new Image() Image3.src = "Slice5_over.gif" Image3 = new Image() Image3.src = "Slice6_over.gif" --> </script> |
Reply
rvovk
Mar 20 2005, 09:22 PM
I use XHTML and CSS code for preloading some images that are used in layout of my page. This is HTML code for one image: <div class="hiddenPic"><img src="images/layout/over.jpg" alt="hidden"/></div>Whereas images/layout/over.jpg is path to yours image file, div class="hiddenPic" defines DIV class. And CSS code is this: .hiddenPic {display:none;}This CSS rules defines that div class HIDDEN is not displayed on the screen, only is preloaded. I guess Javascript isn't too good choice in your case, cause some, but this is very few people have Javascript disabled, thats why I must do my Pop-Up image in XHTML/CSS way. Best regards, Robert.
Reply
webaurores
Mar 21 2005, 01:48 AM
i think the XHTML/CSS solution is too theoric. i mean, it would work with most of your visitors, but not all of them. because MANY people uses old browsers, which doesn't support whether XHTML or CSS. and, sometimes, those browsers aren't too old. check it out on Firefox. it won't work; i tried something similar to it some time ago: i put SEO information about a page in the begging of it (so Google gives it more value), but it looked awful in the layout, so i tried to hide that info with a CSS code like rvovk's, and it didn't work with Firefox (it did with IE5).
Reply
rvovk
Mar 21 2005, 05:18 AM
Check it out on my site, here, and you will see that it works. I tried it IE6 and Firefox.
Reply
Vacant
Mar 24 2005, 07:09 PM
QUOTE(webaurores @ Mar 21 2005, 01:48 AM) i think the XHTML/CSS solution is too theoric. i mean, it would work with most of your visitors, but not all of them. because MANY people uses old browsers, which doesn't support whether XHTML or CSS. and, sometimes, those browsers aren't too old. check it out on Firefox. it won't work; i tried something similar to it some time ago: i put SEO information about a page in the begging of it (so Google gives it more value), but it looked awful in the layout, so i tried to hide that info with a CSS code like rvovk's, and it didn't work with Firefox (it did with IE5). CODE <img src="blah.jpg" width="1px" height="1px" />
Stick this on the homepage (or whatever, the page before the one you want the preloading done on). This will load the image, but will only display 1px of it (which you can't see). Do this for every image, and in theory it'll act as a preload because it will load the image first. Its a quick fix, but it works for me.... - Vacant.
Reply
kawasu
Mar 29 2005, 10:42 AM
hmm... i forgot wat i used to preload images. i think it was a javascript but i really can't remember. anyway, if u ask me i really wouldn't use a preload script. it's alright for dial-up users but nowadays everyone is on broadband. having loading scripts only slows broadband in the end, really not worth implementing them anymore. in the end it's ur choice, i just think they're a waste of time.
Reply
Vacant
Apr 1 2005, 11:40 PM
QUOTE(kawasu @ Mar 29 2005, 10:42 AM) it's alright for dial-up users but nowadays everyone is on broadband. in the end it's ur choice, i just think they're a waste of time. Everyone, in fact, is NOT on broadband. Places like Japan may be on 12 mb connections but over here in the UK we've only just discovered broadband... and most people don't have it here. You need to think about every user to your site. However, I think that in most cases the preload is not essential anyway...
Reply
mizako
Apr 4 2005, 11:30 AM
With Javascript i preload images with: if (document.images) { folderopen= new Image(16,16); folderopen.src="buttons/node_open.png"; folderclose= new Image(16,16); folderclose.src="buttons/node_close.png"; textimage = new Image(16,16); textimage.src="buttons/text.png"; arrowopen = new Image(16,16); arrowclose = new Image(16,16); arrowopen.src="buttons/arrow_open.png"; arrowclose.src="buttons/arrow_close.png"; } Then for example if you want to change the image of an element into your Javascript code you write simply: foldericon=arrowclose.src
Reply
CrashCore
Apr 11 2005, 01:11 AM
Mizako, I wouldn't say that's quite so simple. The others that posted before you are much less code. I like rvovk's way the best, and it seems to work on his site for me, and I'm using Firefox (who isn't?). It doesn't work as well on IE (I only have it because my family uses it  ), but my IE has been screwed up for a long time. It doesn't work with custom javascripts anymore, and the css is screwed up a lot of time, and installing SP2 with the new version of IE didn't help at all.
Reply
mizako
Apr 11 2005, 06:58 AM
QUOTE(CrashCore @ Apr 11 2005, 01:11 AM) Mizako, I wouldn't say that's quite so simple. The others that posted before you are much less code. To preoload just an image takes 5 lines of code. Two images 7. Not that much :-)
Reply
BuffaloHELP
Apr 23 2005, 06:41 PM
heavensoundsI do not believe one needs to have preload images. One's browser accesses images, for this discussion sake, when the browser calls for and when the viewer clicks on the link (does this make sense?). But here is a thought: What if one's page contains a tree menu made up with graphics as a background or such? And within that tree menu there are submenus that also require graphics as a background...etc? When a viewer expands a particular menu tree, it will take a short time to load graphics it needed to show it as one programmed. But in the mean time, the viewer would see that "ugly" X picture until that graphic is fully loaded. So, the conclusion is that it just makes the viewing page a little enjoyable (as I tried to say on my previous post). However, if one's hosting service has limited bandwidth one might face a problem. By preloading images one is using up bandwidth that perhaps might not have needed by the viewer. And thus, the browser downloads that entire graphics to the viewer’s cache and never gets the chance to be "used." I have a tree menu style that mimics window's help menu (with closed and open folders, little dotted lines to connect them) and each graphics are 1k. Now it may not be much but, 1kB x 26 categories x 3 graphics per category = 78kB. I have an average unique visitor of 58 a day so that's 78kB x 58 = 4,524kB (4.5MB). That's 31.668MB a week, 126.672MB a month (4 weeks)... it adds up. So, decide how you want to present your web page and use it discretionally. Good luck.
Reply
heavensounds
Apr 23 2005, 12:39 PM
Can someone please explain to me why one would acctualy use PRE LOADING IMAGES... What is the whole idea?? Is it possible that it would pre load some images which are on lets say music.html and i am currently on the index.html page?? This would be nice because the other page would load when someone is looking the index page and then don't have to wait for the next one to load cos' it would have already beed loaded... Thx for any help...GREETZ
Reply
Similar Topics
Keywords : pre, load, images
- Page Load Error When Accessing Cpanel
(0)
Images For Website
(0) Which is the best site to build our images to host on the home pages....
My Site Fails To Load
My site always times out, and fails to load (16) Hey all... Whe I try to access my site, it always times out, when I try to ping, it does the
same... DNS records are accessible, and I get all my emails for the domain (todorowww.net)... I am
hosted on Gamma server, and I can access it, and get that cPanel page... But, when I try my site, it
won't load... Is there some problem with the server or something? FTP doesn't work either...
This is the case for a few days now, at first I thought it was just a temporary error, but it
appears not to be... I have avout 20 credits left, so that shouldn't be the issue.......
Flash Problem
sometimes the buttons will load the wrong link. (9) Its weird but sometimes when you hit the forums or roster button on my flash banner it will load:
www.childrenofconan.trap17.com/index.html instead of what its suppost to. It works fine, but if you
mess around and click the buttons for a little bit you will notice this happening. This is a problem
because people visiting the site will sometimes click the button once and be like oh I guess the
link is broken and never come back, if anyone has a solution to what could be the problem it would
be awesome. This is one of my first custom flash banners and im just confused what....
How To Add Images
(9) Well i just got my site hosted and i wasable to add my stuf to the ind manager, but the site didnt
work without the images and i coudlnt find out how to add images....
Wis's Graphics
Warning, lots of images! (0) Here are some of my recent graphics, and oldies! Most of these are
vectored or have had some kind of vector influence. /smile.gif" style="vertical-align:middle"
emoid=":)" border="0" alt="smile.gif" /> As you can tell I like bright, vibrant colors. Also, I
don't use any brushes. Ever. /tongue.gif" style="vertical-align:middle" emoid=":P" border="0"
alt="tongue.gif" />....
Some Pages On My Site Won't Even Load..
(6) Ever since today, my site has been working just fine. I'm maintaining the amount of points I
need, and the server status has been and still is fine. However, a while ago I tried to access my
site and it wasn't loading. When I loaded the root URL, it worked fine though. I went to the
file manager and noticed that the file I was trying to previously access was .php, and the index
file at my root URL was .html. I deleted the index.html file and made a index.php file, then tried
loading it again. Safari gave me the following message: QUOTE Safari can’t ope....
How To Display Images Of A Directory
(4) I am trying to do a simple thing. I want to display all the images of a directory on a single page
with the checkbox next to each image, so that i can select multi images and i can delete selected
images. Following few lines of code display the images of a directory.. i need help to put the
check boxes with each image. and I dont understand how can i select multi images with check box and
then delete them. I hope someone can help. thanks. CODE <?php $path = "./";
$dir_handle = @opendir($path) or die("Unable to open folde....
My Website Takes Ages To Load
(18) Is it just me or is my website taking a very long time to load? http://www.princesstimes.com It
usually loads very quickly previously, and I haven't added anything to it recently to cause it
to take a long time to load.....
Guide To Killing Aviansies
Ever wanted to make a load of money and level ranged? (2) QUOTE First of all, I have to say that this topic will only help you out if you are a member,
have either 60 strength or agility, have a decent ranged level (I would suggest 65+), a decent
prayer level (50+) and at least a little bit of money to throw around to begin with. Honestly,
it's really worth it, costs about 50-100k per load, and can easily sell drops for 4-500k per
load, so at the minimum about 300k profit per load, which takes me about 1-3 hrs. First of all,
Items Required: Rope (first time only) Monk's Robes Ranged Weapon (I use rune c'bow....
Imagefilez.com Now Hosts - More Than 1 Million Images - Lots More To Come
(5) Hi Guys, I am really proud & happy at the same time to announce to you all that Imageflez is now
hosting more than 100,000 images. We really had a tough time recently cleaning spam on the server,
then came the big server upgrade, then bot attacks.. it was really tough times, But finally we are
now as strong as we were ever before. So spread the word and use Imagefilez & now let's grow.
/tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> Admin -
Imagefilez.com....
How Do I Load Webpages In Cache?
(2) as a webmaster, i want my main links to automatically load in my visitors cache so when they click
on my main 5-6 links, they will load fast. so basically, when my visitors enter my home page,
while they are reading or scrolling through, 5-6 other pages are loading invisably in their cache i
believe you can do this in javascript, but i am not sure exactly how and i am also not sure if this
is the best way to go about this. i know it can be done as i have seen it done 3-4 years ago and now
i want to incorprate that method. the pros to this is obvious. faster load time....
Adding Shine To Text
images say "Tiger Ads", but, the board is clsed, so, i'm r (1) OK, in this tut, I am going to show you how to add shine to any text. For this example I will be
using the TigerAds affiliate button. (the board is since closed so, I'm not really advertising
/tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" />) OK then,
lets get started! 1. Open up the image that you will be using, this is mine: 2.
Now that your image is open and making sure that its the .psd so you can edit the text on it. In
your layers menu, hold down CTRL and click on the text layer so that only the te....
Getting Flash Images On A Site
(1) well, i don' t have a site yet, but about 6 months ago i made a template, with flash buttons and
all, with sound and everything i was so proud so i tryed to put em on there with a special code u
needet or something ,so i did, but i got blank images,, i even tryed uploading it on the site it
didn't work, so i asked around they said u can' t install them on a cpanel, u need ftp, so i
downloadet the program needet and i got stuck there, so basicly how do u do that,and could some1
help me out how to get it working on a cpanel....
How To Make Gif Images?
(15) Which program i need to make GIF images?? Is that just Paint or something easyer, or i need download
some programs for making GIF images? I just see complete GIF images and then i download them, but
how can i make my own gif picture with 24 or more Frames? Does anyone know that? Please help mi
with that.......
Mars Probes Snap Stunning Images Of Giant Crater
(11) hey! i´ve come across with this interest piece of information
http://www.newscientistspace.com/article/d...ant-crater.html check check check check it out....
Scrolling Images?
How to Make an Image Scroll With the Page (5) I'm trying to make my homepage look a little fancier and I've got a nice background image,
but I want it to scroll with my page, like if you scroll down the image will still appear like it
does on the top of the page. Can someone tell me how to do this? I'm using Microsoft Frontpage
to edit it. I'm not sure what programming language this would be, probably CSS or Javascript,
but I can edit the page script with Notepad or something to make this work. Right now the page is
purely HTML, so whichever language this is, can somebody also give me the tags and ma....
How To Make Firefox Load Faster + Known Firefox Tweaks
Do you hate how long firefox takes to load? Then this topic might be h (2) Ok first of all, i have read through all the Firefox tune-up tutorials on the site, and none of them
have mentioned on how to make Firefox load faster like IE. So i thought i should make a easy
tutorial on it. REAL EASY WAY: Download Firetune: FIRETUNE And you will know what to do,
just muck around with the software’s settings. COMPLICATED BUT TECHNICAL WAY: And second of
all, all those who are still using IE (Microsoft's infamous Internet Explorer) get Firefox. Why
you may ask, read this: FIREFOX vs. IE . Have you ever noticed on how fast IE lo....
How To Get High Quality Gif Images In Flash
(1) Step 1- Make the Animation Get your animation ready. Make sure not to use any Movie Clips with self
contained animation for it will be lost in the conversion to an animated gif. Step 2- Publish
Settings Now that you have your animation you need to go to Publish Settings under File. Now
uncheck all of the boxes except for gif. This will not effect you if you usually preview your movies
by the Test Movie feature. If you do use Publish to preview your movies, simply recheck the .swf box
after this tutorial. Now click the only remaining Gif tab at the top of the box. N....
Expanding Image Gallery
Images Expanding on a mousover (6) I was looking through wired today, and i noticed :
http://www.hotwired.com/webmonkey/06/08/index2a.html looks like a pretty nifty image gallery
effect, though i noticed that it wont display properly in FireFox. Does anyone have any links or
examples of other image gallery code, i find it pretty fascinating.....
Can You Add Images Into A Mysql Database?
Using Php? (20) I'm learning php in class right now, but I'm still not that good at it, what I'm
wondering is when I write the php so that it can connect with a database, can I at the same time
have it that it is able to display back images that I choose. Like, I want a search feature, where
you can search for a keyword, and it will bring back a list of all the possible entries with that
keyword, but each of these entries will have a photo associated with it. Now, do I put these image
files directly into the database, or do I write the code to link them from my files to th....
College Credit Load
do I have ADD? :) (7) Anyone else ever take an 18-credit load in college? Even a 17? Just took my first
"crammer-semester," as my friends affectionately call it, last fall.... the results were not pretty
to say the least. Let's just say the pattern of working hard from day 1 to day 40ish and then
gradually declining from that point until the week before finals appears far too often for me.
Seems normal college behavior (unless you're a work/study-aholic), more than half the campus
does the same thing, but it just feels a bit ADD to me. Gotta start popping Ritzee's I guess, l....
What Is Theme Of Your Current Desktop Image
about images, pictures... (19) My current desktop image is standard windowsXP Home image. /tongue.gif' border='0'
style='vertical-align:middle' alt='tongue.gif' /> And U? ....
Desktop Doesn't Load
(32) i click on my login name, it says Loading settings, then the screen just goes to a blank screen with
just my wallpaper showing. You can press CTRL+ALT+DELETE, and switch users with WINDOWS+L. So it
doesn't freeze. I tried ending and re starting explorer.exe, and still it did not work. Please
help me, thanks. -dax....
How To Double Stroke Images
Using Photoshop (22) (I am aware that there is an existing tutorial on double stroking text, but this is very different.)
How to double stroke images using Photoshop by Strawberrie 1. Open up/copy&paste the
image you want to double stroke onto a new layer (Shift+Ctrl+N) in Photoshop. 2. Go to Edit >
Stroke. Set the width to 3 px and color to whatever you wish your furtherest inside border to be (in
this case, black). You should get something like this: 3. Go to Edit > Stroke again. Set the
width to 2 px and color to whatever you wish your middle border to be (in thi....
Creating Links In Images
Using ImageReady (17) In this tutorial I will show you how to create links in your image. I'm shore there's a lot
of different ways you can do this, but I'll just show you how to do it real easy. 1) After
creating the image you want to add links to in photoshop, make shore the mode is set to RGB Color.
Just go to Image -> Mode -> RGB Color. 2) Go to File -> Jump To -> Adobe ImageReady. Your image
will now load into ImageReady. For this tutorial I will be using this image that I found: I will
make the buttons of this navigation bar into links. 3) Press K to select the slice t....
Blank Images - (white Square W/red X)
FTP uploaded images don't display (8) Hey Guys, PROBLEM: Uploaded website & all images display as blank white box with red X on the
webpages. Tech Info: Am using domain hosting (not subdomain hosting) All my html pages are in
folder "public_html". All my images are present in folder named "userfiles". Both folders are "root"
on the server in my cpanel (ie. not in subfolders). The html code on my webpages "pointing"
(incorrectly???) to the images is: QUESTION: 1) Whats up??? 2) Is this html 3) Does the Xisto
server require that images only be placed in a specific folder OR subfolder in order to display....
Turning An Image Into A Cartoon Style - Photoshop
Tutorial on cartooning images. (30) This tut will show you how to make a photo look cartoonish in three easy steps... 1)Open your
image in photoshop, doesnt really mater what size or shape anything really a landscape, city, or a
person. I am using a picture of a football player in this example 2)Go up to
Filter>Blur>Gaussian Blur and set the radius at 3.0 or higher depending on the effect your looking
for. 3)Last go Edit>Fade Gaussian Blur. A window will pop up... set the mode to darken for tha
cartoonish effect or to any other mode for plenty of other effects. Lower the opacity if you
don't....
Exporting Transparent Images In Photoshop To Flash
Needed: Photoshop 7 or CS, Flash MX (4) First of all, it is important that you make sure the image you wish to export is on a transparent
layer. The transparent layer is a checkered background in photoshop. You can see this checkered
background in the image to the left. In this example, I created a quick glass icon which has
different levels of transparency. This is the image I will be exporting, whilst preserving
it's transparency. Once your image is on a transparent background, head to file > save for
web. You can only export complex transparency using the .png filetype. So from the drop down....
1000 Free Psd Icon Images
They are very cool (10) Here it is: CODE http://www.stud.uni-hannover.de/~ngthanh/1000_ico/page_01.htm
http://www.stud.uni-hannover.de/~ngthanh/1000_ico/page_02.htm
http://www.stud.uni-hannover.de/~ngthanh/1000_ico/page_03.htm
http://www.stud.uni-hannover.de/~ngthanh/1000_ico/page_04.htm
http://www.stud.uni-hannover.de/~ngthanh/1000_ico/page_05.htm Carpe diem.....
Looking for pre, load, images
|
|
Searching Video's for pre, load, images
|
advertisement
|
|