View Full Version : monkey script!
pixelmonkey
06-25-2001, 06:11 PM
ok, this is why for the most of monday i was MIA!
the things i am working on changing are as follows..
1.) does anyone have an idea how to add the hide statement for all of the onmouseover statements without having to add it at each statement?
2.) sure, at first everyone was fine with the absolute positioning to the left, then one person lights an idea that spreads like wild fire... now they want it in the center! i'm not 100% sure how to work around this with mutiple selections, keeping the absolute from the top.
3.) have fun with it!
the monkey calls it a day!
chris<pixelmonkey>:monkey:
pixelmonkey
06-26-2001, 10:51 AM
can anyone tell me this... can div 's be defined from "center" so all rez sizes will display properly? i do not want the absolute position from the left, but from center. and i still need to keep it around 40 pixels from the top.
keeping the questions coming
chris<pixelmonkey>:monkey:
Originally posted by pixelmonkey
can anyone tell me this... can div 's be defined from "center" so all rez sizes will display properly? i do not want the absolute position from the left, but from center. and i still need to keep it around 40 pixels from the top.
keeping the questions coming
chris<pixelmonkey>:monkey:
I think the following will do the trick:
<div align="center">
Good Luck,
Paul
pixelmonkey
06-26-2001, 11:43 AM
Originally posted by hacker
I think the following will do the trick:
<div align="center">
Good Luck,
Paul
thanks for trying, but align="center" does nothing to the above script. if it did activate, i would still be facing the problem for the left and right drops as being X pixels from center.
i bet that will make everyone say Hummmmmm...
chris<pixelmonkey>:monkey:
pixelmonkey
06-26-2001, 03:45 PM
how about this... can hyperlinks be set to entire cells of a table WHEN the background has a set image?
looking for another loop hole!
chris<pixelmonkey>:monkey:
kevin
06-26-2001, 04:36 PM
Originally posted by pixelmonkey
can anyone tell me this... can div 's be defined from "center" so all rez sizes will display properly? i do not want the absolute position from the left, but from center. and i still need to keep it around 40 pixels from the top.
keeping the questions coming
chris<pixelmonkey>:monkey:
I believe that absolute positioning is always calculated with position 0,0 (the top left corner)as the reference point. Any other positioning would be relative positioning.
Regards,
Kevin
pixelmonkey
06-26-2001, 04:40 PM
but... can relative be set for X ammount of pixels from the center? or will the script go crazy on re-size?
this code has bothered me enough for today, i'm moving on to another...
chris<pixelmonkey>:monkey:
kevin
06-26-2001, 05:06 PM
I could just me an indication as to my abilities, but I've not found relative positioning to work very well. If there is a way to set the relative position as n amount of pixels from the center I don't know how to do it.
Why not just use percentage values when calculating the absolute positions for the DIVs
position: absolute; top: 0%; left: 50%;
you can also mix percentages with pixels
position: absolute; top: 0px; left: 50%;
useing percentages for the div/table widths in conjunction with percentages for the DIV positioning might achieve the effect you want.
Regards,
kevin
Dr. Web
06-27-2001, 01:48 AM
Originally posted by pixelmonkey
1.) does anyone have an idea how to add the hide statement for all of the onmouseover statements without having to add it at each statement?
There is a way, sure.... but since your using Dreamweaver to create the page/ mouseovers, I think its best to use it to add the hide layer option as well. I only saw 4 mouseovers on the page anyway.
Were you handcoding, you could just pass in a parameter through the event.
something like: onMouseOver="showLayer(this is where you pass the parameter value);"
then inside the function(parameterName){
if (parameterName=="showlayer"){
show layer action
}else{
whatever to do if not showing the layer
}
}
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.