apresto
asked on
Page with DIV's Looks different on different machines...on Same Network!?
Hi,
I have created an heirarchy chart using DIV positioning and a few javascript functions to hide and show different images onmouseover of different things
I finished the page on mymachine, i was very happy - I looked at it on my bsses machine and felt like hanging myself!!!
Any ideas why god hates me?
I have created an heirarchy chart using DIV positioning and a few javascript functions to hide and show different images onmouseover of different things
I finished the page on mymachine, i was very happy - I looked at it on my bsses machine and felt like hanging myself!!!
Any ideas why god hates me?
ASKER
The oage is alot bigger than this but this is an example of some of the code:
<!-- BOSSES UNDER LINDA MASLEN -->
<table width="900" border="0" lightbordercolor="black" cellspacing="0" bordercolor="#000000">
<tr>
<th style="background-color: #75A3D0; border-left-style: solid; border-left-width: 1; border-top-style: solid; border-top-width: 1">Jill Jones</th>
<th style="background-color: #C9DBED; border-left-style: solid; border-left-width: 1; border-top-style: solid; border-top-width: 1">Dave Morton</th>
<th style="background-color: #75A3D0; border-left-style: solid; border-left-width: 1; border-top-style: solid; border-top-width: 1">Sandie Bisset</th>
<th style="background-color: #C9DBED; border-left-style: solid; border-left-width: 1; border-top-style: solid; border-top-width: 1">Duncan McCombie</th>
<th style="background-color: #75A3D0; border-left-style: solid; border-left-width: 1; border-top-style: solid; border-top-width: 1">VACANT</th>
<th style="background-color: #C9DBED; border-left-style: solid; border-left-width: 1; border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1">Graduates and PA's</th>
</tr>
<tr>
<td align="center" width="150" onmouseover="hideAll();sho wMe('JJima ge');showM e('JillJon eslabel'); showMe('St uartSmith' );showMe(' LizRothwel l');showMe ('HelenBai ley');
showMe('NikkiCoombe');show Me('KatieH ofsetter') ;showMe('L izMoore'); showMe('Su sannahHosk ins')" style="background-color: #75A3D0;
border-left-style: solid; border-left-width: 1"><img src="images/ManOne.jpg" width="100" height="120" alt="This is Jill Jones, Sales and
Billing Manager" border="1"></td>
<td align="center" width="150" onmouseover="hideAll();sho wMe('DaveM ortonImage ');showMe( 'DaveMorto nlabel');s howMe('Jul ieOreilly' );showMe(' Simonchann on');
showMe('PhilWalker');showM e('JulianT ranter')" style="background-color: #C9DBED; border-left-style: solid; border-left-width: 1">
<img src="images/mantwo.jpg" width="100" height="120" alt="This is Dave Morton, Collections Manager" border="1"></td>
<td align="center" width="150" onmouseover="hideAll();sho wMe('Sandi eBissetima ge');showM e('SandieB issetlabel ');showMe( 'MaureenFe rguson');s howMe('Hel enLuty');
showMe('JaneDickinson');sh owMe('Andy Patterson' );showMe(' JackiePear ce');showM e('LisaHow se');showM e('Vacancy ')"
style="background-color: #75A3D0; border-left-style: solid; border-left-width: 1"><img src="images/Manthree.jpg" width="100" height="120"
alt="This is Sandie Bisset, Change and Information Manager" border="1"></td>
<td align="center" width="150" onmouseover="hideAll();sho wMe('Dunca nMcCombieI mage');sho wMe('Dunca nMccombieL abel');sho wMe('Vacan cy1');show Me('SteveK ingston');
showMe('BryonyOlliffLee'); showMe('Li zGroves'); showMe('Ca rolineHand ');showMe( 'KateHowel l');showMe ('JayneSma ll');showM e('ChrisBe tteridge') ;
showMe('RogerDooley')" style="background-color: #C9DBED; border-left-style: solid; border-left-width: 1"><img src="images/Manfour.jpg"
width="100" height="120" alt="This is Duncan McCombie, Process and Contracts Manager" border="1"></td>
<td align="center" width="150" onmouseover="hideAll();sho wMe('CSops image');sh owMe('Csop erationsLa bel');show Me('Eamonn Treanor'); showMe('Li ndaBennett ');
showMe('JustinHulbert');sh owMe('Kare nGiddings' );showMe(' VeronicaFr anks')" style="background-color: #75A3D0;
border-left-style: solid; border-left-width: 1"><img src="images/Manfive.gif" width="80" height="80"
alt="This position is currently vacant" border="1"></td>
<td align="center" width="150" onmouseover="hideAll();sho wMe('grads AndPaImage ');showMe( 'GradsandP aLabel');s howMe('Jac obEngel'); showMe('Pa ulCatteral l');
showMe('KimCook');showMe(' CarolineHu tchings'); showMe('Vi ctoriaWilk ins')" style="background-color: #C9DBED;
border-left-style: solid; border-left-width: 1; border-right-style: solid; border-right-width: 1">
<img src="images/Mansix.jpg" width="100" height="120" alt="I dont know hwo this is!" border="1"></td>
</tr>
<tr>
<td style="background-color: #75A3D0; border-left-style: solid; border-left-width: 1; border-bottom-style: solid;
border-bottom-width: 1" align="center">Sales and Billing Manager</td>
<td align="center" style="background-color: #C9DBED; border-left-style: solid; border-left-width: 1;
border-bottom-style: solid; border-bottom-width: 1">Colleciton Manager</td>
<td align="center" style="background-color: #75A3D0; border-left-style: solid; border-left-width: 1;
border-bottom-style: solid; border-bottom-width: 1">Change & Information Manager</td>
<td align="center" style="background-color: #C9DBED; border-left-style: solid; border-left-width: 1;
border-bottom-style: solid; border-bottom-width: 1">Process and Contracts Manager</td>
<td style="background-color: #75A3D0; border-left-style: solid; border-left-width: 1; border-bottom-style: solid;
border-bottom-width: 1" align="center">CS Operations</td>
<td align="center" style="background-color: #C9DBED; border-left-style: solid; border-left-width: 1; border-right-style: solid;
border-right-width: 1; border-bottom-style: solid; border-bottom-width: 1">Unknown</td>
</tr>
</table>
</div>
<!-- MANAGERS UNDER EACH BOSS -->
<Div ID="JJimage" style="visibility:hidden;c ursor:hand ;position: absolute; top: 401; left: 20" align="center">
<div ID="JillJoneslabel"><br><h 3>Jill Jones' Team</h3></div>
<div id="StuartSmith" style="visibility:hidden;c ursor:hand ;position: absolute; top: 45; left: 10" onmouseover="hideAll();sho wMe('JJima ge');showM e('StuartS mith');sho wMe('LizRo thwell');s howMe('Hel enBailey') ;showMe('N ikkiCoombe ');
showMe('KatieHofsetter');s howMe('Liz Moore');sh owMe('Susa nnahHoskin s');showMe ('Stuartsm ithTeamLea ders');sho wMe('Shail eenNewson' );
showMe('MichelleWhitaker') ;showMe('G arethParry ');showMe( 'AngelaPug h')">
<img border="1" src="images/StuartSmith.jp g" width="80" height="90" alt="This is Stuart Smith, Manager of Sales Investigation and Billing"></div>
<div id="LizRothwell" style="visibility:hidden;c ursor:hand ;position: absolute; top: 45; left: 120" onmouseover="hideAll();sho wMe('JJima ge');showM e('StuartS mith');sho wMe('LizRo thwell');s howMe('Hel enBailey') ;showMe('N ikkiCoombe ');
showMe('KatieHofsetter');s howMe('Liz Moore');sh owMe('Susa nnahHoskin s');showMe ('LizRothw ellTeamLea ders');sho wMe('IanHo oker');
showMe('CarrieHancox');sho wMe('MikeS ullivan'); showMe('Le sleyBreadi ng');showM e('KimMapp lethorpe') ;showMe('S teveChanoc k')">
<img border="1" src="images/LizRothwell.jp g" width="80" height="90" alt="This is Liz Rothwell, Manager of Billing and Cash Control"></div>
<div id="HelenBailey" style="visibility:hidden;c ursor:hand ;position: absolute; top: 45; left: 230" onmouseover="hideAll();sho wMe('JJima ge');showM e('StuartS mith');sho wMe('LizRo thwell');s howMe('Hel enBailey') ;showMe('N ikkiCoombe ');
showMe('KatieHofsetter');s howMe('Liz Moore');sh owMe('Susa nnahHoskin s');showMe ('BernieBi shop');sho wMe('Julia Murphy');s howMe('Wen dyAdams');
showMe('DuncanMcAllister') ;showMe('T raceyDebon o');showMe ('ChrisLar ken');show Me('Vacant 3');showMe ('JillNald i');showMe ('MarkMaid ment');
showMe('GillRandall');show Me('SallyA nnHarvey') ;showMe('A nneMarieEm ms');showM e('SarahRi chmond');s howMe('Lis arobinson' )">
<img border="1" src="images/HelenBailey.jp g" width="80" height="90" alt="This is Helen Bailey, Manager of Billing Call Centres"></div>
<div id="NikkiCoombe" style="visibility:hidden;c ursor:hand ;position: absolute; top: 45; Left: 340" onmouseover="showMe('Nikki CoombeDesc ')">
<img border="1" src="images/NikkiCoombe.jp g" width="80" height="90" alt="This is Nikki Coombe, Manager of Billing Call Centres"></div>
<div id="KatieHofsetter" style="visibility:hidden;c ursor:hand ;position: absolute; top: 45; left: 450" onmouseover="showMe('Katie HofsetterD esc')">
<img border="1" src="images/KatieHofsetter .jpg" width="80" height="90" alt="This is Katie Hofsetter, Manager of Meter Reading"></div>
<div id="LizMoore" style="visibility:hidden;c ursor:hand ;position: absolute; top: 45; left: 560" onmouseover="showMe('LizMo re')">
<img border="1" src="images/LizMoore.jpg" width="80" height="90" alt="This is Liz Moore, Manager of 'New Customers'"></div>
<div id="SusannahHoskins" style="visibility:hidden;c ursor:hand ;position: absolute; top: 45; left: 670" onmouseover="hideAll();sho wMe('Susan nahHoskins Desc')">
<img border="1" src="images/SussannahHoski ns.jpg" width="80" height="90" alt="This is Sussannah Hoskins, Manager of Sales Investigation and Billing"></div>
</div>
I have now re-coded it so its looks abit different but before i was using an image and positioning it with DIVS to make it look like the images that appeared on the rollover were joined to the source image (which when rollever over displayes these images).
But even with this code some of the images are positioned incorrectly on the page.
Do i need to code the positioning differently, i tried using relative positioning but it was weird, i had to use minus numbers to position images in the right place?
You should know i was introduced to DIV positioning yesterday so im not to familiar with them.
<!-- BOSSES UNDER LINDA MASLEN -->
<table width="900" border="0" lightbordercolor="black" cellspacing="0" bordercolor="#000000">
<tr>
<th style="background-color: #75A3D0; border-left-style: solid; border-left-width: 1; border-top-style: solid; border-top-width: 1">Jill Jones</th>
<th style="background-color: #C9DBED; border-left-style: solid; border-left-width: 1; border-top-style: solid; border-top-width: 1">Dave Morton</th>
<th style="background-color: #75A3D0; border-left-style: solid; border-left-width: 1; border-top-style: solid; border-top-width: 1">Sandie Bisset</th>
<th style="background-color: #C9DBED; border-left-style: solid; border-left-width: 1; border-top-style: solid; border-top-width: 1">Duncan McCombie</th>
<th style="background-color: #75A3D0; border-left-style: solid; border-left-width: 1; border-top-style: solid; border-top-width: 1">VACANT</th>
<th style="background-color: #C9DBED; border-left-style: solid; border-left-width: 1; border-right-style: solid; border-right-width: 1; border-top-style: solid; border-top-width: 1">Graduates and PA's</th>
</tr>
<tr>
<td align="center" width="150" onmouseover="hideAll();sho
showMe('NikkiCoombe');show
border-left-style: solid; border-left-width: 1"><img src="images/ManOne.jpg" width="100" height="120" alt="This is Jill Jones, Sales and
Billing Manager" border="1"></td>
<td align="center" width="150" onmouseover="hideAll();sho
showMe('PhilWalker');showM
<img src="images/mantwo.jpg" width="100" height="120" alt="This is Dave Morton, Collections Manager" border="1"></td>
<td align="center" width="150" onmouseover="hideAll();sho
showMe('JaneDickinson');sh
style="background-color: #75A3D0; border-left-style: solid; border-left-width: 1"><img src="images/Manthree.jpg" width="100" height="120"
alt="This is Sandie Bisset, Change and Information Manager" border="1"></td>
<td align="center" width="150" onmouseover="hideAll();sho
showMe('BryonyOlliffLee');
showMe('RogerDooley')" style="background-color: #C9DBED; border-left-style: solid; border-left-width: 1"><img src="images/Manfour.jpg"
width="100" height="120" alt="This is Duncan McCombie, Process and Contracts Manager" border="1"></td>
<td align="center" width="150" onmouseover="hideAll();sho
showMe('JustinHulbert');sh
border-left-style: solid; border-left-width: 1"><img src="images/Manfive.gif" width="80" height="80"
alt="This position is currently vacant" border="1"></td>
<td align="center" width="150" onmouseover="hideAll();sho
showMe('KimCook');showMe('
border-left-style: solid; border-left-width: 1; border-right-style: solid; border-right-width: 1">
<img src="images/Mansix.jpg" width="100" height="120" alt="I dont know hwo this is!" border="1"></td>
</tr>
<tr>
<td style="background-color: #75A3D0; border-left-style: solid; border-left-width: 1; border-bottom-style: solid;
border-bottom-width: 1" align="center">Sales and Billing Manager</td>
<td align="center" style="background-color: #C9DBED; border-left-style: solid; border-left-width: 1;
border-bottom-style: solid; border-bottom-width: 1">Colleciton Manager</td>
<td align="center" style="background-color: #75A3D0; border-left-style: solid; border-left-width: 1;
border-bottom-style: solid; border-bottom-width: 1">Change & Information Manager</td>
<td align="center" style="background-color: #C9DBED; border-left-style: solid; border-left-width: 1;
border-bottom-style: solid; border-bottom-width: 1">Process and Contracts Manager</td>
<td style="background-color: #75A3D0; border-left-style: solid; border-left-width: 1; border-bottom-style: solid;
border-bottom-width: 1" align="center">CS Operations</td>
<td align="center" style="background-color: #C9DBED; border-left-style: solid; border-left-width: 1; border-right-style: solid;
border-right-width: 1; border-bottom-style: solid; border-bottom-width: 1">Unknown</td>
</tr>
</table>
</div>
<!-- MANAGERS UNDER EACH BOSS -->
<Div ID="JJimage" style="visibility:hidden;c
<div ID="JillJoneslabel"><br><h
<div id="StuartSmith" style="visibility:hidden;c
showMe('KatieHofsetter');s
showMe('MichelleWhitaker')
<img border="1" src="images/StuartSmith.jp
<div id="LizRothwell" style="visibility:hidden;c
showMe('KatieHofsetter');s
showMe('CarrieHancox');sho
<img border="1" src="images/LizRothwell.jp
<div id="HelenBailey" style="visibility:hidden;c
showMe('KatieHofsetter');s
showMe('DuncanMcAllister')
showMe('GillRandall');show
<img border="1" src="images/HelenBailey.jp
<div id="NikkiCoombe" style="visibility:hidden;c
<img border="1" src="images/NikkiCoombe.jp
<div id="KatieHofsetter" style="visibility:hidden;c
<img border="1" src="images/KatieHofsetter
<div id="LizMoore" style="visibility:hidden;c
<img border="1" src="images/LizMoore.jpg" width="80" height="90" alt="This is Liz Moore, Manager of 'New Customers'"></div>
<div id="SusannahHoskins" style="visibility:hidden;c
<img border="1" src="images/SussannahHoski
</div>
I have now re-coded it so its looks abit different but before i was using an image and positioning it with DIVS to make it look like the images that appeared on the rollover were joined to the source image (which when rollever over displayes these images).
But even with this code some of the images are positioned incorrectly on the page.
Do i need to code the positioning differently, i tried using relative positioning but it was weird, i had to use minus numbers to position images in the right place?
You should know i was introduced to DIV positioning yesterday so im not to familiar with them.
It's going to be impossible to debug this without seeing the page in action, but that may not be possible.
A couple of items:
1. Use a doctype as the first line of your page, before the <html> tag:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2. Anywhere you have a value, you "must" specify a unit. And watch the capitalization.
top: 45; Left: 340; becomes top: 45px; left: 340px;
3. This line:
<Div ID="JJimage" style="visibility:hidden;c ursor:hand ;position: absolute; top: 401; left: 20" align="center">
I have no idea what that is positioned "to", but it won't work in anything other than IE if it's inside a table.
4. This looks like about 10 times the amount of code needed to do what I "think" you're doing.
The more code, the more chance of it breaking - but without actually seeing the page live, I can't me of much more use...
Sean
A couple of items:
1. Use a doctype as the first line of your page, before the <html> tag:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2. Anywhere you have a value, you "must" specify a unit. And watch the capitalization.
top: 45; Left: 340; becomes top: 45px; left: 340px;
3. This line:
<Div ID="JJimage" style="visibility:hidden;c
I have no idea what that is positioned "to", but it won't work in anything other than IE if it's inside a table.
4. This looks like about 10 times the amount of code needed to do what I "think" you're doing.
The more code, the more chance of it breaking - but without actually seeing the page live, I can't me of much more use...
Sean
ASKER
thanks for your help.
I dont have the page with me as i forgot it at work but ill host it tomoro and post the link in here.
Trust me, when i started this i didnt think it would be this much code!
Thanks for your time, ill post back tomoro
I dont have the page with me as i forgot it at work but ill host it tomoro and post the link in here.
Trust me, when i started this i didnt think it would be this much code!
Thanks for your time, ill post back tomoro
ASKER
http://i.domaindlx.com/derekDIG/
i have uploaded the pages and what it SHOULLD look like to this site, please advise, thanks
i have uploaded the pages and what it SHOULLD look like to this site, please advise, thanks
There is another way to do all this... back later :-)
Sean
Sean
It looks good on my browser check your bosses monitor resolution, I think that with this page you have to pick a minimum resolution that it will support (800x600)
Also, I think the contract and brightness needs adjusting on your pictures.
Also, I think the contract and brightness needs adjusting on your pictures.
Okay, took a closer look...
All you need is some of these:
<li>
Some of these:
:hover
and 6 lines of javascript.
http://www.pdgmedia.com/ee/derek.html
Sean
All you need is some of these:
<li>
Some of these:
:hover
and 6 lines of javascript.
http://www.pdgmedia.com/ee/derek.html
Sean
ASKER
wow seanpowell, the source of that was about 100 times less that what i am using at the moment!!! Im gonna have a deeper look into it and tr and userstand it all then ill post back - Thanks man - that works great - MUCH quicker aswell
ASKER
hey dtolo,
i thought it was the screen resolution at first, but i changed my won screen res to 800X600 from 1280X1204 (or something) and it worked fine on mine but on anyother PC it went scu whif - i might have a solution now but does anyone know why this happened?
Also SeanPowell - Is the javascript you are using for that page in a style sheet?
How exactly did you hide the images etc on mouseover, i cant see if from the code
i thought it was the screen resolution at first, but i changed my won screen res to 800X600 from 1280X1204 (or something) and it worked fine on mine but on anyother PC it went scu whif - i might have a solution now but does anyone know why this happened?
Also SeanPowell - Is the javascript you are using for that page in a style sheet?
How exactly did you hide the images etc on mouseover, i cant see if from the code
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
That was a nice job Sean.
Thanks - I actually needed a diversion today, so the timing was good.
It's not often enough that I get to play for my own sake, instead of those nasty paying clients :-)
Sean
It's not often enough that I get to play for my own sake, instead of those nasty paying clients :-)
Sean
ASKER
Sean Powell you have helped me out alot, im going to downlopad the sheets you linked me to and use them with my code and ill post back when i get a chance - thanks for all your help so far - i Genuin Expert!!!
ASKER
Hi Seanpowell, i have doenloaded the files from that server space so if u like you can remove them, i dont want to be clogging up your space.
Ill get back to this soon, i am swamped with other work
Ill get back to this soon, i am swamped with other work
No problem, and thanks :-)
Sean
Sean
ASKER
i think i have sussed it, thanks for you help, very much appreciated!
That's great, and thanks :-)
Sean
Sean
So let's see it.