Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win



Posted on 2003-11-06
Medium Priority
Last Modified: 2010-04-09
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.


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.

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.

Question by:jaysolomon
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +4

Expert Comment

ID: 9697122
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 !
LVL 16

Author Comment

ID: 9697142
Not gonna do flash. i hate flash.


Expert Comment

ID: 9697339
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 !
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Expert Comment

ID: 9697601
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...


Expert Comment

ID: 9697804
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.

LVL 16

Author Comment

ID: 9698824
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...

Expert Comment

ID: 9699225
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...
LVL 12

Accepted Solution

Dean OBrien earned 2000 total points
ID: 9700010

Try this link i think


Not sure why it needed the '+90', but looks like it works


Expert Comment

ID: 9700768
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>

something like that. I think it should work

Expert Comment

ID: 9702274
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 !

Expert Comment

ID: 9704892
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.

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question