|
| |
|
|
znewsokoban
Posts: 8 Joined: 11/15/2004 Status: offline
|
Dynamic HTML effects problem! - 11/15/2004 7:00:03
hi all, i need help with DHTML effects, i made a site with Page Header and i divided it to small images so some of them will be links and should change when i move the mouse over them or click them , the problem is when i click this image it disappears for a moment revealing the background untill it loads the new image that will replace it leaving a blank area which looks so bad, but after accessing some of the pages of the site , this problem vanishes as if the alternative images are loaded in the temp files of the browser . i hope you understand the problem, so my question now is if there any way to load the alternative images to the temp files when the homepage is loaded? or if anyone has a suggestion to overcome this problem. all images are between 1k and 2.5k, i use FP2002 and IE6 thanks in adavance
|
|
|
|
dpf
Posts: 7121 Joined: 11/12/2003 From: India-napolis Status: offline
|
RE: Dynamic HTML effects problem! - 11/15/2004 8:41:48
you need a javascript preload function - check some of the javascript ads here
_____________________________
Dan
|
|
|
|
aaronwiles
Posts: 200 Joined: 7/5/2004 From: Aaron Wiles Status: offline
|
RE: Dynamic HTML effects problem! - 11/15/2004 11:06:19
You will need to use a JavaScript preload within your pages, this forces downloads of your mouse-over images so they are immediately available to the visitor from their browser cache when they mouse-over the image. Unless this is done then the image will take a moment to display, as the image needs to be downloaded on to the visitor’s machine before being displayed, which is your problem. There are a number of preloads freely available on the internet but you are more than welcome to use the one I use on my site, although obviously the image names etc. will need to be customised to your site. JavaScript file http://www.lookmyface.co.uk/js/preload.js Put this in the head of your web page/s (this may need to be cusomised depending on the location of the preload.js file and what directory your webpage is viewing this file from). <script language="JavaScript" src="js/preload.js" type="text/javascript"></script> This is a replacement for the <body> tag, again you will need to customise this a little, the locations of the images etc. <body onload="MM_preloadImages('/images/borders/top.jpg','/images/borders/btm.jpg','/images/blankimage.gif')">
_____________________________
You really never learn to swear until you get a computer.
|
|
|
|
znewsokoban
Posts: 8 Joined: 11/15/2004 Status: offline
|
RE: Dynamic HTML effects problem! - 11/16/2004 6:17:36
thank you guys so much, great help aaronwiles , i will try doing as you told me and hope i will make it right.
|
|
|
|
pesty
Posts: 188 Joined: 7/2/2004 From: USA Status: offline
|
RE: Dynamic HTML effects problem! - 11/17/2004 1:55:03
hey znewsofoban Another thing you can do to preload is cache the image by creating a new image object, using the 'new' keyword. Here's an example: Image2 = new Image(); Image2.src = "image.jpg"; This works well with slower modem connections. What you are actually doing is creating a independent image object. This lets you preload the image in the cache. Pesty
|
|
|
|
znewsokoban
Posts: 8 Joined: 11/15/2004 Status: offline
|
RE: Dynamic HTML effects problem! - 11/17/2004 14:32:24
hi Pesty, you are absolutly right and i took this line to make it but with the aid of a preload script that i included in the head of the page, this script is at "a1javascripts.com" and now it is written as follows: <script language=javaScript> //from www.a1javascripts.com <!--// //pre loader newimage0 = new Image(); newimage0.src = "imagees/Home_ONN.jpg"; newimage1 = new Image(); newimage1.src = "imagees/Home_offf.jpg"; newimage2 = new Image(); newimage2.src = "imagees/About_Us_Offf.jpg"; newimage3 = new Image(); newimage3.src = "imagees/About_Us_ONN.jpg"; newimage4 = new Image(); newimage4.src = "imagees/Products_Offf.jpg"; newimage5 = new Image(); newimage5.src = "imagees/Products_ONN.jpg"; //--> </script> and this worked fine, if you have any comments please do. now my problem is how to submit for search engines, i added some keywords at "page properties> custom> user variables " , i added "Name: Keywords" "value: some words seperated with comas,,,,,," then submitted for seachengines, for google some error is there, but for others like "alltheweb" it says it is done..ok? then when i search for the site in alltheweb it is not there.!! so please if you know what iam doing wrong plz help. thanks
< Message edited by znewsokoban -- 11/17/2004 14:45:06 >
|
|
|
|
aaronwiles
Posts: 200 Joined: 7/5/2004 From: Aaron Wiles Status: offline
|
RE: Dynamic HTML effects problem! - 11/17/2004 17:37:08
Easiest way is to look at other sites tags, maybe look at sites like IBM or Micro$ost to see the way they do theres. When you have done this take a look at sites of a simular nature to yours to see what kind of words they are using.
_____________________________
You really never learn to swear until you get a computer.
|
|
|
|
znewsokoban
Posts: 8 Joined: 11/15/2004 Status: offline
|
RE: Dynamic HTML effects problem! - 11/18/2004 9:05:24
logic, i will try that..thanks
|
|
|
|
pesty
Posts: 188 Joined: 7/2/2004 From: USA Status: offline
|
RE: Dynamic HTML effects problem! - 11/19/2004 2:12:34
znewsokoban, This site will help you understand meta tags a little better and will generate the meta tags for you for free. www.scrubtheweb.com/abs/builder.html Pesty
|
|
|
|
znewsokoban
Posts: 8 Joined: 11/15/2004 Status: offline
|
RE: Dynamic HTML effects problem! - 11/19/2004 10:56:45
thanks Pesty, this solved most of my problem. now i submitted for some search engines, "alltheweb, hotbot, Lycos, mixcat" accepted submission, while Google and Directhit gave me an error message "request timed out", do you know why i am getting this error, also for the other engines i did not find my web when i search them even if i enter the whole URL!!! does it take time to be added to these engines? if so, how much time? thanks
|
|
|
|
pesty
Posts: 188 Joined: 7/2/2004 From: USA Status: offline
|
RE: Dynamic HTML effects problem! - 11/19/2004 12:57:04
znewsokoban, If you are "timing out" it is taking to long for your site to transfer. Hopefully you are using a host that offers a control panel to adjust the amount of time to wait before it times out. Most are set at 15-30 seconds, but can usually be adjusted to 90 seconds before it cuts you off. You modem speed could affect the transfer time and cause it to time out. Large files, like jpeg or gif files can cause you to time out. As for your site actually posting, and the time it takes for it to post will depend on the search engine. Your smaller search engines usually take 2-7days. Your larger search engines can take up to 6 weeks. Some search engines guarantee quick posting if you pay. Your larger search engines may never post you site, if you are a free submitter. You should receive emails from the sites you submitted to. It should tell you the length of time it will take for them to post your site. What you site address? Pesty
|
|
|
|
pesty
Posts: 188 Joined: 7/2/2004 From: USA Status: offline
|
RE: Dynamic HTML effects problem! - 11/19/2004 13:32:11
Here's a couple of sites you might want to check out. www.scrubtheweb.com/abs/meta-check.html This site analyzes your meta tags: Here's what it does: General HTML Analysis Checks the server for a valid robots.txt file to make sure robots have access to the document being processed. Also checks to make sure this file exists Basic HTML Syntax Checking Duplicate Tag Detection HTML Title Tag Analysis Syntax Checking Oversize Checking Multiple Title Tag Detection META Tag Analysis Syntax Checking Oversize Checking META Tag Spam Detection 2nd site is: www.1afm.com/optimization/meta_tags/title.html This site site tells you some of the do's and don'ts when submitting. Be sure to click the link for "spamming search engines", it's important that you know how often to submit to keep from being banned. Pesty
|
|
|
|
znewsokoban
Posts: 8 Joined: 11/15/2004 Status: offline
|
RE: Dynamic HTML effects problem! - 11/19/2004 16:03:52
thanks a lot Pesty , this is some valuable info for me, my site is http://www.decorartfurniture.com/ , about large searchengines like google , do i have to pay so they post me otherwise they will not ?! i will check the sites you told me and see what i can do. thanks
|
|
|
|
pesty
Posts: 188 Joined: 7/2/2004 From: USA Status: offline
|
RE: Dynamic HTML effects problem! - 11/19/2004 17:20:27
Didn't say they wouldn't post you. But they won't guarantee they will either. I've submitted sites to them for free before and never had any problems. It took longer to get posted and the site had a low rank. The main thing is to get it posted. You won't need to pay if you can find other sites to swap links with you. There are forums set up just for that. You post to the forum asking for people to link to your site and/or answer some of the posts that are already there. The search engines are changing the way they rate sites. The more links a site has pointing to it, the higher the site ranks. Do your meta tags and get some links swapped. Here is a forum addy to start you out. http://www.htmlforums.com/ Be selective. There are millions of sites out there willing to swap with you. It's best to swap links with sites that have the same interest is yours, but it's not necessary to do it that way. Try to avoid anything that appears dishonest, or in bad taste. Remember, users will be accessing those sites through your web site.
|
|
|
|
znewsokoban
Posts: 8 Joined: 11/15/2004 Status: offline
|
RE: Dynamic HTML effects problem! - 11/21/2004 10:00:34
thanks Pesty , i think there is a lot to do now , untill now i did not find any way to change the "time to wait" till it times out, for other stuff i will see what i can do. thanks
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|