Type: Posts; User: moritana
Search took 0.02 seconds.
getting an object by ID only fetches one object at a time, you can't use it like an array, if we could life would be way much easier.
you can fetch each element separately, and change them...
how about setting the links to be transparent on default, with a hover event listener that makes them solid, as a start.
you can do that with css combined with jQuery
with css its as simple as:
this should do the trick:
its in jquery, so dont forget to add the jquery file.
$('.spotlighticon > img').attr('src', 'img.jpg')
it looks like IE recognizes the divs in block style, which is the default.
i cant tell you much since i dont have the link to the site, or your code.
thats... some thinking material...
i don't really get it but the idea is to put it in 2 other wrapper divs, each centering to another side, right?
"rounded corners" is css3, and no, IE8 does not support css3.
the -webkit- and -moz- you were using are browser specific and were used for designers to "test" css3 properties..
and there is no such...
its supposed to be a blog layout for a study project i'm working on. i gave is a fixed width and height, and if the screen is bigger than the wrapper div, i want it to be centered....
i need to give it either a relative or absolute positioning, because I absolutely position the contents inside that div. thats why i went for this method of centering.
is the only way a script?
yeah.. i tried that. not really working. i gave it a background color to test the layouts, and when i try that, the div somehow disappears, and all its contents are a mess....
so, i know that to center an absolutely positioned div, the best way is setting the "left" property to 50% and then set the left margin to -[div width].
but if i do that, and the users window size...
a) what do you mean by sticky? do you mean you want it to always be at the bottom of your screen no matter how you scroll (fixed) or just at the bottom, or not at the bottom at all (than what)?
listening to events in a parent iframe is possible, but because of security issues, cross-domain iframe communication is impossible.
omg, it's working!!
thank you so so much for your help!! O_O
i'm having trouble with some of my codes.
i've been trying to put variables in function calls parameters, but it just does not work.
for example, if I try to do sth like this:
the error console gives this:
Uncaught TypeError: Cannot read property 'style' of null
what do you mean by "a button to go back"?
well, you can do that when you combine the two codes, cuz the first one also changes the onclick event so pressing on the button again hides the content.
and you can always give the divs fixed...
now its not open on launch.
as for the button that opens more buttons, you can use the previous code, http://jsfiddle.net/moritana/9LmNr/
just use one button...
even simpler code.
"wiley jQuery for dummies" works for me.
and yea, the :traget selector is cool, by that you can affect elements...
jQuery is cross browser, you should start looking there.
and IE will always suck, since they seem to refuse most css3 and html5 properties and elements, cuz there's a possibility of it not passing,...
lol, okay, i helped some, agreed.
you're welcome ^_^
stuff like this script are much much easier with jQuery though.
built in show and hide functions.