PDA

View Full Version : Question about making a script



indexspelen
06-19-2008, 02:32 PM
Well, i'm kindoff new to js,
but i know some things :p

Now, i woudld like to make something kinda difficult,
and i really don't know how to get started

if you go over a link with ur mouse. ( mouseover )
a picture most come into a table in another frame
i don't even know if that's possible.

Just a start might help me out. ;)

I think it might work out with javascript.
Thanks

jscheuer1
06-19-2008, 03:10 PM
Do you mean literally another frame? Frames generally aren't the best idea for anything these days. If you do mean frame, it would be better to put the image into the entire frame, rather than a table in it. Because, if another page without the required table were to be in that frame, there would be an error.

Anyways, the rest of what you propose has been done a lot, with javascript:

http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm

and without:

http://www.dynamicdrive.com/style/csslibrary/item/css-image-gallery/

These are just two examples from the DD libraries, there must be more (probably tons more) on the web.

As a point of interest, to do the frame idea, if you are wedded to it, would require javascript (unless you changed from onmouseover to onclick as your activating method). It could be adapted from the first of the above links by adding parent.window['frame_name'] in a one or more key spots (to display in markup - a table or whatever) or by editing a bit more to launch your image into the frame by itself (the better idea IMO,if you must use frames).

indexspelen
06-19-2008, 03:13 PM
I really need to work with frames, but it's alright.

Thanks for your help, thumbmail 2 is exacly what i was looking for.

I can't thank you engough ;)

indexspelen
06-20-2008, 07:08 AM
now,

i've got a small problem.

<a href="http://www.nasa.gov/images/content/167040main_image_feature_738_ys_4.jpg" rel="enlargeimage::mouseover" rev="loadarea::http://www.dynamicdrive.com" title="1 on 1 soccer" target="top"> 1 On 1 Soccer </a>

This works fine

But when i use this:

<a href="http://www.nasa.gov/images/content/167040main_image_feature_738_ys_4.jpg" rel="enlargeimage::mouseover" rev="loadarea::http://www.dynamicdrive.com" title="1 on 1 soccer" target="top"><a href="www.idon'tcare.com"> 1 On 1 Soccer </a></a><br>

:S maybe it has to do with the dubble <a> tags?

indexspelen
06-20-2008, 08:28 AM
Does nobody has any idea?

jscheuer1
06-20-2008, 01:24 PM
Does nobody has any idea?

This isn't live chat. Sometimes it can take awhile to get an answer. But the answer to your question is yes. Nested links confuse the browser.