GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   The GFY FLASH overlay ( ie7 problems) (https://gfy.com/showthread.php?t=676832)

SmokeyTheBear 11-13-2006 03:56 PM

The GFY FLASH overlay ( ie7 problems)
 
when you go to close the flash overlay it tells you in ie7 your trying to close the browser window

and p.s. there a way around the "click to activate this control) in ie7 you should use it , notice how the banners dont have that ..

Scott McD 11-13-2006 03:59 PM

Quote:

Originally Posted by SmokeyTheBear (Post 11306942)
when you go to close the flash overlay it tells you in ie7 your trying to close the browser window

Yeah noticed this 2mins ago...

Waveu6410 11-13-2006 04:02 PM

That's the first problem I've heard about with IE7. Since I started using it 2 weeks ago I feel it's the best browser out yet.

SmokeyTheBear 11-13-2006 04:23 PM

i dont think its an ie7 problem its a flash designers problem :)

Fucksakes 11-13-2006 04:32 PM

how do you get rid of that click to activate this control? i got the same shit on my site now, and its annoying.

SmokeyTheBear 11-13-2006 04:35 PM

Quote:

Originally Posted by Fucksakes (Post 11307187)
how do you get rid of that click to activate this control? i got the same shit on my site now, and its annoying.

use document.write in a script not on the page..

like if you had <object src=file.wmv><param blah></object>

you would do <script src=blah.js></script> then in blah.js do

document.write('<object src=blah etc etc ></object>');

Fucksakes 11-13-2006 04:38 PM

thanks smokey

SmokeyTheBear 11-13-2006 04:41 PM

heres a loader for most movie types so you dont have to make a seperate js file for every movie works in both firefox and ie

save this as movie.js

Code:

function iemov( WIDTH, HEIGHT, URL)
{
document.write('<object classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="' + WIDTH + '" height="' + HEIGHT + '">');
document.write('<param name="URL" value="' + URL + '">');
document.write('<param name="autoStart" value="true">');
document.write('<PARAM NAME="invokeurls" VALUE="true">');
document.write('<PARAM NAME="stretchToFit" VALUE="true">');
document.write('<PARAM name="uiMode" value="mini">');
document.write('<PARAM name="PlayCount" value="9999">');
document.write('<param name="background-color" value="white">');
document.write('<param name="ShowStatusBar" value="0"></object>');

}
function ffmov( WIDTH, HEIGHT, URL)
{
document.write('<object data="' + URL + '" type="video/x-ms" width="' + WIDTH + '" height="' + HEIGHT + '">');
document.write('<param name="src" value="' + URL + '">');
document.write('<PARAM name="uiMode" value="full">');
document.write('<PARAM name="PlayCount" value="9999">');
document.write('<param name="autoStart" value="true"></object>');

}

change the params how you see fit


then to load movies into it just call it like this
first put <script src=movie.js></script> in your head then to call movies do this

Code:


<script>
var browser_type=navigator.appName
var browser_version=parseInt(navigator.appVersion)
if (browser_type=="Microsoft Internet Explorer"&&browser_version>=4){
    iemov( "684", "495", "http://file.com/file.wmv")
  }
else {
ffmov( "684", "495", "http://file.com/file.wmv");
} </script>


SmokeyTheBear 11-13-2006 04:43 PM

basically it just detects if your using firefox or ie then picks whatever routine is applicable and embeds the video..

saves you on code too

SmokeyTheBear 11-13-2006 04:44 PM

if you want to use flash with it just modify the params inside the movie.js to whatever code your using now and call it the same way

High Plains Drifter 11-13-2006 05:44 PM

Quote:

Originally Posted by SmokeyTheBear (Post 11307258)
basically it just detects if your using firefox or ie then picks whatever routine is applicable and embeds the video..

saves you on code too

You could save some more code by putting the browser check in movie.js

Mutt 11-13-2006 05:57 PM

i've been doing it with seperate javascript files and was hoping i'd figure out how to do multiple Flash movies on one page with just on js file. now if yours' works i have it :thumbsup

thanks Smokey

marketsmart 11-13-2006 06:02 PM

strange, im not using ie7 yet tho...


All times are GMT -7. The time now is 12:29 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123