View Single Post
  #3 (permalink)  
Old 05-09-2008, 04:17 PM
Kim André Akerĝ
Guest
 
Posts: n/a
Diggs:
Default Re: My Very Strange Webhost, SBI! -- Opinions, Please

Prisoner at War wrote:

>
> Friends, your opinions and advice, please:
>
> I have a very simple JavaScript image-swap which works on my end but
> when uploaded to my host at http://buildit.sitesell.com/sunnyside.html
> does not work.
>
> To rule out all possible factors, I made up a dummy page for an
> index.html to upload, along the lines of <html><head><title></title></
> head><body></body></html>.; the image-swap itself is your basic <img
> src="blah.png" onMouseOver="bleh.gif" onMouseOut="blah.png">.
>
> All file paths are correct; all image files have been uploaded; the
> JavaScript itself, such as it is, is also correct.
>
> That is to say, all very simple.
>
> And still it doesn't work.
>
> Now I contacted their customer/tech support, and only after three days
> with the third rep was it acknowledged that I had a problem which they
> ought to look into (at first they did the usual tech support thing
> and, upon seeing the keyword "JavaScript" immediately disavowed any
> responsibility for my situation, as if I was calling about third-party
> software or something like that).
>
> After another three days of not receiving my files that they asked me
> to send, which I did via Yahoo!, they took a whole week to investigate
> the matter
>
> This is what I was told, in relevant part:
>
> The issue is with how the absolute and relative links are
> used, and our programmers have said (and tested) that
> if you...
>
> 1. Upload a dummy file with all the images referenced
> separately, i.e. in separate <img src ="..."> tags
>
> 2. Make all the links absolute before uploading
>
> ...then what you want to achieve will be successful on
> the live page.
>
>
> Can someone parse that for me, please? I don't understand what's
> being asked of me, exactly.
>
> Am I really being asked to use absolute path-names? Couldn't that
> prove very messy down the road should I decide to move files/pages
> around??
>
> And, moreover, how am I supposed to use separate <img> tags for the
> two image files that are to be used for an image-swap?? How would the
> browser know to link the two in the manner of an image-swap if
> "distributed" over separate <img> tags??
>
> And is it perhaps somehow too much for me to expect my webpages to
> upload "as is" -- or is it not unusual for a webhost to have
> particular requirements about how such things need to be?? SBI! is my
> first webhost so I really don't know what industry standards would be.


The onmouseover and onmouseout parameters of the tag needs to refer to
a JavaScript function, or even a small JavaScript contained inside the
parameter text, not a reference to an image location.

How to achieve such an effect is described, among other places, here:
http://www.hypergurl.com/rolloverimage.html

--
Kim André Akerĝ
- kimandre@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
Reply With Quote