PDA

View Full Version : GAL doesn't like iframes


KTBleeding
11-21-2005, 05:12 AM
Gal doesn't like iframes, but who can blame her? I don't either.

However, I'm forced to use them with my Amazon affiliate program and I thought, "Wouldn't it be cool to have these in GAL popups?"

Well it is a cool idea, but when you mouseover any part of the ifram, it closes the popout as if you were mousing out of it all together. Therefore a user can not click on the Amazon links anywhere because the GAL popup closes.

141

I'm sure you can tell what the Amazon part is. Is there anyway to prevent GAL from closing on the mouseover?

Thanks,

The Geek
11-21-2005, 07:19 AM
so your GAL popup is an iframe? If so - i realllllllly like the idea.

If I got you right, the iframe is firing the GAL box's onmouseout which is causing it to close? I think the Iframe needs to have a onmouseover and onmouseout then that keeps the gal box visible.

Am I on the right track?

Lizard King
11-21-2005, 08:24 AM
Can this be done easily ? If yes i am going to purchase GAL :) Becase i really like how it looks.

The Geek
11-21-2005, 08:58 AM
not too sure :)

doing an iframetest now

The Geek
11-21-2005, 09:07 AM
kind of works. Think it needs a bit more of a tweak though.

Im likein it!

The Geek
11-21-2005, 09:10 AM
Doesnt seem to close on me however it does act freaky on FF. Ill work with it a touch

Lizard King
11-21-2005, 09:38 AM
What about inserting pictures into popup ? Is it possible ?
Edit : it works in IE

The Geek
11-21-2005, 09:44 AM
you can put HTML or bbcode - so yes :)

FF seems to fire off the mouseoff event when the iframe gets the focus (even though the iframe is IN the container). Im playing around with some ideas as I think this is very cool.

The Geek
11-21-2005, 01:01 PM
Hey, think its starting to work ok!

Fleabag
11-21-2005, 01:22 PM
Real nice idea guys. :)

KTBleeding
11-21-2005, 02:14 PM
Wow, didn't think you'd like the idea that much Geek. ;)

The popup is not an iframe, I just included an iframe in my popup replacement code:

<iframe hspace="7" src="http://rcm.amazon.com/e/cm?t=bleedzao-20&o=1&p=8&l=as1&asins=B0002IQ9SW&=1&fc1=7c7565&IS2=1&lt1=_blank&lc1=650b0b&bc1=edebeb&bg1=edebeb&f=ifr" style="width: 120px; height: 240px;" marginwidth="0" marginheight="0" align="right" frameborder="0" scrolling="no"></iframe>
<h2>The Funeral of God</h2>
<strong>Released:</strong> July 13, 2004

1. Breath Of The Black Muse
2. The Rising End (The First Prophecy)
3. The Last Revelation (The Last Prophecy)
4. The Last Song From zion
5. Live... From the Funeral of God
6. The Lesser Lights Of Heaven
7. In Times Gone Past
8. Praise The War Machine
9. Truly, Truly, This Is The End
10. I Lay Sleepless In My Grave
11. Psalm Of The City Of The Dead

That is the code I have put in. But when you mouse over the iframe, the GAL popup closes. For an example, check out the second post in this thread:

http://www.bleedzao.com/forums/showthread.php?t=7795

Should have three different GAL's in there.

The Geek
11-21-2005, 02:24 PM
With FF, yes - yours isnt working. Ive had to make some code changes to get it a little bit better. However Im going to keep playing with it as it dies open another door!

KTBleeding
11-21-2005, 03:08 PM
Yep, it does appear just fine in IE. :) I really have to remember to make note of / check those things when making a post. haha

Just incase: Appears to do the same thing in Opera. Closes on the iframe mouseover.

KTBleeding
11-23-2005, 06:16 PM
Hey Geek, did you find out a quick way that I could fix this until a later release? Thanks.

The Geek
11-23-2005, 07:13 PM
Working on it as we speak.

Basically, I am testing a version that flips the element open, bubbles up mouseover events, runs a timer to test flags and then closes if flags say 'no more mouse movement'. Problem is, it sorts several issues - but not this one FF one!

The only other way I can think is to actaully do the above however instead of bubble up flags, capture mouse movements and compare the posistion against the size of the popup. If its out, then close it.
THis seems like the perfect solution except for the fact that it requires me to capture mousemove events which I wouold really like to avoid.

We shall see :)

The Geek
11-23-2005, 09:53 PM
How about now? Can anyone verify that iframetest works with relevant browsers? I have worked ALL FREAKING NIGHT to come up with a new solution and I just think I have it. MUWAHAHAHAHAHAHA

Lizard King
11-23-2005, 11:46 PM
it is working with firefox but it is not loading anyhing :P

ihatetyping
11-24-2005, 03:43 AM
With IE if your very careful it will load a www.amazon.com page about the music of Occasion: Connick on Piano, Vol. 2
Geeks wish list?? :p

But the pop up is very touchy/sensitive/hard to place the mouse in just the right spot for it to load. ;)

The Geek
11-24-2005, 07:33 AM
huh, ill adjust the throttle on it - however it seems fine in FF and IE to me. Ill repost it with an adjusted rate later today.

Thanks

oly51
11-25-2005, 01:46 AM
But the pop up is very touchy/sensitive/hard to place the mouse in just the right spot for it to load. ;)Works for me on IE and Opera 8.5 if you slide the mouse pointer into the box when it is loading.

ihatetyping
11-25-2005, 03:20 AM
Works for me on IE and Opera 8.5 if you slide the mouse pointer into the box when it is loading.

Thanks, for sharing the secret handshake .....now it works reliably for me as well! :o