Link to home
Start Free TrialLog in
Avatar of jaysolomon
jaysolomon

asked on

URGENT!!!!!!!!PLEASE PLEASE

i am helping a friend out and he needs this by tommorrow, and i am short of time and busy. So i am asking for help.

http://ww2.potterybarn.com//cat/roomindex.cfm?cid=romhofgar&cmsrc=&src=rmscromhof%7Crrooms%2Frmscrom%7Crrooms%2Fhme

If you go there you will see when you mouse over the pic you will see 4 squares around each pic and when you mouse out you will see there gone.

I have the javascript for this. I just need the HTML. Here is the link to the website the guy is working on.
http://www.greenteadesign.com/test.html

You will see that there is the divs using absolute position. What i would like to do is make it so that it will work with all screen resolutions. I really do not want to detect the resolution and send to different page bases on it. I would like for this to work in one page.

Ignore the code in the page. He did it, i am going to clean it up and make it compliant.

I am offering the max points since this is urgent and i am short on time.


TIA
jAy
Avatar of Yavor_01126
Yavor_01126
Flag of Bulgaria image

Hmmm ... this is easy  ;-)

First make the page in the resolution you want (your work resolution) , then you got the whole page and the "focus of the page"
where the mouse is playing you put this "focus" in to an IFRAME so just need to arrange the IFRAME in the other page... Got it !    ;-)

If you play around you can do the same with CSS . It is nothing much ... I didn't play much with resolution but if you arrange all elements to left or right and top or bottom it will work very well I think !

You can try doing this on flash it will be more than simple in flash ... It can be done all in Flash (the site) or just every page contains a flash movie ... you decide !

But try doing it like I told you first because the source is already build and you have to modify it only .
But with an IFRAME it will work 100 % because it uses the same way I explain you in second ...

just CSS tight work nothing more


Regards !
Avatar of jaysolomon
jaysolomon

ASKER

Not gonna do flash. i hate flash.

OK but try it as I told you ...
with an IFRAME it is all align at left and top and no text will make your page bugs ...

Try it ! As I told you it is all a matter of CSS precision ... because I think that some browsers render HTML elements and CSS elements as part of one when combinig the problem with resolution it is all just perfect to bug out !  :-)

So try make the FOCUS of the page in an IFRAME and make the IFRAME large enough to fit with the main page and the resolution may stop buging your work

I don't like flash too ! I prefer codding rather than designing !

I use it some times if I want to make something like funny animation or stuff like that ...


Regards !
Well the easiest way would be to put hotspots on the image and just make a bunch of images that have the corners on it.  In the hotspot have mouseover and mouseout commands to change the image to the new image.  I think the way they did it was with layers and positioned the layer exactly over the place on the image that you want to have the corners.  

So let me explain about the hotspot idea better.  You have one image with map on it and in the map code have it do a mouseover and mouse command that changes the image to another preloaded image that has the corners on it.  So you will have a bunch of images.

If you want, i could work on sample code, but I don't have an image i could do the sample with.

I just looked at the test page, from what I see, its just a metter of getting the positioning of the layers right.  I will take a deeper look...

-Matt
OK, well I just spent like 30 minutes for nothing, since the content on the page in centered, there is no way of doing this, you need to move all the content aligned to the left and top.  When he does that, it will just be a matter changing the top and left attriputes in the DIVs for the corners and for the actual link.

-Matt
Yea i tried the image mapping and got it working, but it flickers when you move your mouse. Then i used setTimeout in javascript to slow the flicker down, but it did not slow enough.

Still working...
could you try making the pisition of the divs relative to the position of the upper left corner
of that cell where the image is located.... maybe that could work...
ASKER CERTIFIED SOLUTION
Avatar of Dean OBrien
Dean OBrien
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Many solutions here.

What about having everything inside a <div style="position:relative">, which could be centered in the page. Inside this <div></div> you can place many other layers, positioning them in an absolute mode. This absolute mode refers to the general div, so it would work the same in any resolution:
<table><tr><td align="center">
<div id="general" style="position:relative">
    <div id="picture" style="position:absolute;top:0px;left:0px"><img src...></div>
    <div id="Object1Focus" style="position:absolute;topXXpx;left:XXpx;"></div>
</div>
</table>

something like that. I think it should work
Hey !
Why don't you just make a second image ... aaa I mean to cut the pic in peaces so each object is a image and then simply make second image which is with this "corners" and then just make an roolover effect .

Should work as a script !

Regards !
like macorc said, put the absolute divs inside the relative div.  most of the scripts on that page are macromedia scripts anyway. but if you wanted to be fat and sassy, you could just use css hovers and not give a damn about ie... but that probably isn't an option.

i didn't look at much of the source, only enough to see the css and some scripts. but im guess the corners are just gif/pngs on a transparent div? if it is, there isn't to much work to do.