HTML - Image Loading?
This is sort of both HTML and CSS, but I'll post it here for now. My question is:
In CSS, I type the following: td.tablehead { background-image:---------; .........; .........; } Now, I will be using the "tablehead" class around 20 times on a webpage, so will the background image stated above have to load 20 TIMES, or just once, since the same image is being used? Please respond ASAP. Thanks Similar TutorialsHi, I want to load a window with loading image on a button click. The new window is having an other content so before loading the actual content i want to disapear the loading image from the new window. I tried with html like <html> <img src=".." /> --------------------- Actual content " display:none " ----------------------- <script> actual contentid.display:block; img.display:none; </script> </html> But in this method am seing the image after some time lanching the window. i want to c the image right after launcing the window till my actual content loads. can anybody suggest something for this,..... Im having a problem i dont know if its just the loading speed, but so the image slideshow i have loads first below my tabbed info on the right, it loads beneath but then to the top, not a major issue but feels like it could be fixed, the code is here Code: <style> .peKenBurns { width: 500px; height: 330px; align: center; margin-left:6px; } </style> <script> jQuery(function($){ $(".peKenBurns").peKenburnsSlider() }) </script> <script type="text/javascript" src="http://www.google.com/jsapi"></script> <script type="text/javascript"> google.load('jquery','1.4.3'); google.setOnLoadCallback(function() { $('#desc1 div:not(:first)').hide(); $('#tabs1 li').click(function(event){ var id = $(event.target).index(); $('.active1').removeClass('active1'); $(event.target).addClass('active1'); $('#desc1 div').hide().eq(id).show(); }); $('#desc2 div:not(:first)').hide(); $('#tabs2 li').click(function(event){ var id = $(event.target).index(); $('.active2').removeClass('active2'); $(event.target).addClass('active2'); $('#desc2 div').hide().eq(id).show(); }); $('#desc3 div:not(:first)').hide(); $('#tabs3 li').click(function(event){ var id = $(event.target).index(); $('.active3').removeClass('active3'); $(event.target).addClass('active3'); $('#desc3 div').hide().eq(id).show(); }); $('#desc4 div:not(:first)').hide(); $('#tabs4 li').click(function(event){ var id = $(event.target).index(); $('.active4').removeClass('active4'); $(event.target).addClass('active4'); $('#desc4 div').hide().eq(id).show(); }); } ); </script> <style type="text/css"> h1 { margin-left:5px; } #wrapper { width:470px; margin-left:5px; } #tabs1 { width:100%; padding:0px; margin:0px; } #tabs1 ul { padding:0px; margin:0px; width:100%; } #tabs1 li { height:50px; display:block; float:left; line-height:50px; text-align:center; background:#036; margin:0px; padding:0px; width:32.9%; color:#FFF; cursor:pointer; text-transform:uppercase; } #tabs1 li.active1 { background:#CCC; color:#000; border-bottom:1px solid #CCC; } #desc1 { width:100%; } #desc1 div { clear:left; width:100%; height:200px; } </style> <table width="100%" cellspacing="3" cellpadding="3" border="0" class="border"> <tbody> <tr> <td> <h1>Residential - Doors</h1> <a href="http://[LINKID:4]">« Back to Residential</a> <table width="100%" cellspacing="1" cellpadding="1" border="0" summary=""> <tbody> <tr> <td width="270"><!-- slider markup, 3 slides --> <div class="peKenBurns" data-mode="swipe" data-logo="disabled" data-controls="over" data-shadow="disabled"> <div class="peKb_active" data-delay="6"> <img src="images/page_content/residential_doors_sliding1.jpg"/></a> </div> <div class="peKb_active" data-delay="6"> <img src="images/page_content/residential_doors_sliding2.jpg"/></a> </div> <div class="peKb_active" data-delay="6"> <img src="images/page_content/residential_doors_sliding3.jpg"/></a> </div> <div class="peKb_active" data-delay="6"> <img src="images/page_content/residential_doors_sliding4.jpg"/></a> </div> </div> <!-- end slider markup --></td> <td> </td> <td> <h1>SLIDING WINDOWS</h1> <div id="wrapper"> <div id="tabs1"> <ul> <li class="active1">Description</li> <li>Features</li> <li>Options</li> </ul> </div> <div id="desc1"> <div> <p>Aluminum sliding windows are both functional and durable. The ultimate low maintenance window style due to few moving parts. The sliding window is a classic design that will suit most architectural styles.</p> </div> <div> <ul> <li>Choice of coloured glass & Aluminium</li> <li>Screens are fittable or removable from inside the room</li> <li>Maximum Height 1500mm</li> <li>Maximum Glass Laminate 6.38mm</li> <li>Adjustable height key locks</li> </ul> </div> <div> <ul> <li>Range up to BAL 40 for bushfire areas</li> <li>Range of glazing solutions</li> <li>External aluminium insect, safety and supascreens</li> <li>Sump sill for extreme weather conditions</li> <li>Range of standard and custom colours</li> <li>Variety of window style configurations</li> </ul> </div> </div> </div> </td> </tr> <tr> <td> </td> <td> </td> </tr> if that doesnt help go to http://www.c-view.com.au/index2.php?...ential-windows Hi I am rebuilding my new website and want to make the gallery be more accessible to change when I want to add new work. I thought I could make an XML file with sequential image names that can then be loaded when the page loads and so make changes easier. I am not a javascript or XML script writer, and was looking around the web for a solution. I could only find flash versions or this method. What I would like is a script that could read the xml file and place images and a description in divs inside a container div on my page. This would then be styled using CSS. The images placed will also need to have an associated link to a bigger image file. Does anyone know of any resources that can give good examples of this type of gallery loader? Thanks in advance http://www.nonvoicebpo.co.cc. This site consist of non voice BPO services details, at the top of the site i am calling one image , it is loading very slowly. how to load it quickly. thanks Is it possible with html? i've been working on a site but each time you click the next arrow a new page loads, all the text is in the same place so it doesn't move and is even in a fixed div but due to it being a new page everything loads, the text collapses until the larger image in the center loads. Of course this is fixed when the site is cached but of course the site would only be cached once someone has clicked through it and experienced the problems 27 times... so my question is is it possible to code for when i click the next arrow only a new image from a different link to load? is this possible with html? I don't know a single thing about flash or javascript. thanks for all the help in advance here is the page in question (not done but you can still see the problems. the home and bio links well, aren't links yet) http://www.paulodourado.com/ hi when u surf to my forum. u will see the images a real short time in a place on the screen where they should not be. right after that they are being positioned by css. surf to www.acidleague.com and all goes well, but then click on forum and u will see this issue, then u can click home-forum-home-forum to see it really clear the wierd part is that this is happening only by divs i added myself to the code i made these divs in the overal_header.html page <div id="sidebarleft"></div> <div id="sidebarright"></div> <div id="cornerleft"></div> <div id="cornerright"></div> and uses this css on em #sidebarleft { padding: 0px; float: left; margin: 0; position:absolute; width: 600px; left:-599px; top:0px; height:600px; background-image:url(http://www.acidleague.com/League/the...eader_bg.jpg); background-repeat:repeat-x; } #sidebarright { padding: 0px; float: left; margin: 0; position:absolute; width: 600px; left:999px; top:0px; height:800px; background-image:url(http://www.acidleague.com/League/the...eader_bg.jpg); background-repeat:repeat-x; } #cornerleft { padding: 0px; float: left; margin: 0; position:absolute; width: 47px; left:-46px; top:192px; height:49px; background-image:url(http://www.acidleague.com/League/the...bg/tleft.jpg); } #cornerright { padding: 0px; float: left; margin: 0; position:absolute; width: 47px; left:999px; top:192px; height:49px; background-image:url(http://www.acidleague.com/League/the...g/tright.jpg); } whats is the most common way to stop this? ty Hi All, Good Evening I am new into this forum..My question i have a .html file which are having images mentioned as absolute path.How to provide them in relative path so that when i run the same html in other machine it should run well without any disapperaing of icons. Below is the small tag code which need to be converted. Quote: <h3> <a href="#redirect"><font size=4.2 face=" Palatino Linotype" color="#9400D3">a) About Tool <img border="0" src="C:\\Forum Tool Code\\SNF Automation Executor_April20_2009\\Images\\edit.png" width="30" height="25"> </font> </a> </h3> Thanks in advance. regards, Viswanadh Hi, Want to open a window without addressbar and menubar with loading image for the button click. i want to c the loading gif right after opening the window. its very urgent anybody help me on this Thanks, Hi there, I was wondering if anyone knows how to centre an image link in another frame (yes I know frames are bad but its an old website I am updating) i have <a href="picturelink" target="mainframe"> <img src="thumbnail" border="0"></a> I have tried everything from class="center" to editing the original frameset and the original page loaded into the window but I can't get the jpeg file to load up centred and so I was hoping someone might be able to help as I don't want to link all the pictures to seperate html documents with only a centred image in... Thanks for any help. http://www.heresmary.com I just finished uploading my site, and I noticed that when I click on a link the page loads then loads again a split second after. Does this happen to anyone else? If so can anyone give me any advice about it? Here's a newbee question and you are probably gonna laught, but there it is: I have two pages saved in the same directory. One is index.html and the other trial.html. They are linked together. Both load the general.css file correctly when I double click on them from the directory they are saved. But when I go from one to another clicking on the link only the content loads and no css rules are applied. What am I doing wrong? How should I code for the css rules to load? Any help will be immensely appreciated My index.html file is like this (www.omegaintertrade.ro) Quote: <html> <head> <title>Omega Intertrade Test Site</title> <link rel='stylesheet' rev='stylesheet' href='global.css'type='text/css' media='screen' charset='utf-8' /> </head> <body> <div id='wrapper'> <div id='wrapper2'> <div id='header'><img src="logo.jpg" height = 120 border="0" hspace="25" > </div> <div id='leftcolumn'> <ul> <li><a href="index.html">Home</a></li> <li><a href="mb.htm">About Me</a></li> <li><a href="mb.htm">Products </a></li> <li><a href="mb.htm">Contact</a></li> </ul> </div> <div id='rightcolumn'><div class= "bheader">This column is intentionally blank!</div> </div> <div id='bodytext'> <div class= "bheader">Home</div> Main text area <br> stay with omega to see the further developments</div> <div id='footer'>Footer</div> </div> </div> <body> </html> As you may see it is consist of header footer and 3 columns in the middle. While visitors navigate through menus only bodytext content will change. For example after registering the site, a small message will appear like 'thank you for registering' on bodytext. How should i place that message in the page(on "bodycontent")? Should i create another html document exact like index.html except changing the content of the "bodycontent" section. This idiot solution comes to my mind Is there another short and easy solution? Hi all, I have a flash object that will sometimes not load in IE. However, if you refresh the page, the movie loads just fine.. It's only on the first entrance to the page. My code is: <center> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="290" height="176" id="image-zoomer" align="center"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="image-zoomer.swf?path=zoom/" /> <param name="quality" value="high" /> <param name="scale" value="noscale" /> <param name="salign" value="lt" /> <param name="bgcolor" value="#ffffff" /> <embed src="image-zoomer.swf?path=zoom/" quality="high" scale="noscale" salign="lt" bgcolor="#ffffff" width="290" height="176" name="test" align="center" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object></center> Any suggestions for me? The site is at http://showball.com Thanks David Go to: http://jmillerteam.com/complete2.html So my client says that sometimes when he loads this page the pics on it aren't loading. He even sent me a screenshot. I have no clue why most of the time they load and sometimes they don't. I can't reproduce the problem. If anyone goes to the page do the pics not load (the first time) for you? Okay, so here's my site, a Duke3D map review site: http://msdn.planetduke.gamespy.com/indexmain.shtml As you can see, it has frames (ooh, the horror!). The problem I have (or have had for a long time but have been too lazy to do anything about it) is that at times I'd like to post links to specific map reviews but linking to separate shtml files means that you won't get the top and left frames. So, is there some code I can write in, for example, this page so that whenever you access that subpage, it loads the frames around it as well? Hi Everyone, I am working on a website and I am having problems with some of my pages loading. I thought it might have been an error in the html code. I rechecked & found no errors. I even moved the pages around. I moved the ones that were working, into the slot of the page that would not load. It loaded fine. When I click the page in the file. It displays properly at the top and everything. But when I try to access it from another page, it will not load. I get a white page that says this page can't be displayed. Here is the area I am having problems with. <a href="smg.htm">Suicide Memorial Garden</a><br /> <a href="inmg.htm">Infant Memorial Garden</a><br /> <a href="mmg.htm">Military Memorial Garden</a><br /> <a href="pubserv.htm">Public Service Memorial Garden</a><br /> <a href="pmg.htm">Pet's Memory Garden</a><br /> The first and 4th pages are the only ones that work. Any advice would be greatly appreciated. john721 Had an idea for a web page I've been working on, but not sure how to do it. The page is divided into three frame columns. Left, skinny frame shows a file with all my buttons. Clicking on any of those buttons loads a file into the large center frame, displaying a large picture. What I'd like to do is to make that button simultaneously load a second file into the frame on the right, showing text describing the image in the center. Unfortunately I don't know how to make my button do two things instead of just one. Can HTML do that, or do I need scripting for stuff like that? Hi there, i am very very new to this website building thing. I am starting a website for my new business, it was all going well until i uploaded the website, and when i went to look at it, at the very bottom of the page it said i need to update my flash. I did and it is still saying that. I have tried from 10 different computers and still have the same problem. Am i doing something wrong with the files or something? Please help. I am also using A4Desk Website builder. here is the web address: http://uniqueplanners.netne.net/ Thanks for your time. I've noticed that on my site, k0shy.com, the Div holding all the main text loads way slower than the text itself. To see what I'm talking about, try going to my site and refreshing the page, the white box should expand to fit the text after the text loads (at least in my browser, Firefox 3.0b5). Is there anyway to fix this? Is there an HTML tag that loads a text file right into HTML? Or, so to speak, if i had a text file with HTML written in it, how could i get this into a page, without using any server scripting. Possible? thanks a ton ~DeathBlade |