Banner Should Load After Html Site That Embeds It
Hi,
I created a flash banner. What I promised the client, though, was that it wouldn't interfere with the site's loading. I imagined the surrounding text would load much faster anyway. But looking at the site now it seems to load the banner first. It wasn't my job to embed the file into the final dreamweaver doc, but I wanted to at least recommend them a way of doing it, so that it has the effect the client wanted.
Is there a way to hold off the loading of the swf until it finished loading?
(The banner runs a preloader upfront so that it doesn't start prematurely but that of course doesn't include the loading of the html.)
ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 03-07-2005, 09:01 PM
View Complete Forum Thread with Replies
Sponsored Links:
Getting Domain Of HTML Page That Embeds SWF
I want to know the URL or domain of the HTML page which embeds my SWF file. Although I can get the domain of the SWF file itelf via LocalConnection.domain, this doesnt work when the SWF and HTML files are on different servers. A ugly workaround would be to call a PHP page and let that get the domain, but I was hoping that a client-side solution exists. Can anyone provide me with tips on this?
View Replies !
View Related
Site Won't Load In IE6/IE7 Because Of Flash Banner
In IE7 AND IE6, the homepage on my site won't load. I suspect it has something to do with the flash banner. This is quite strange because I have the same site on my testing site here and the homepage loads fine with the flash. Does anyone know why there is a discrepancy? It works just fine in firefox
View Replies !
View Related
Music Player On Top Banner Of Html Site
Hey everyone,
I need help making a flash music player that I can put underneath the htmt banner for my website. It's going to play 3 different songs, however since there are several different html pages on my website (images, video, forum, etc), as people navigate the site I don't want the music restarting every time someone clicks a link and changes pages.
Is there anyway I can make the music keep playing from page to page? I'd appreciate any help!
Thanks a lot,
Johnny P.
View Replies !
View Related
Load Random .swf In HTML Site
I have a graphic space within an HTML site that I have created several .swf movies. What I would like to do is have about 5-6 movies play in random sequence with a 1 minute interaval between each movie.
I would also like them to start in random order so that each refresh would bring up a random movie.
I have looked at some other posts, but I am brand new at flash and could use some very basic direction.
THANKS!
View Replies !
View Related
.html Pages Won't Load On Flash Site From Nav.
My homepage is a .html page which has a navigation with 4 options that open up .swf files. Within 2 of those .swf files are links to open multiple .html pages in a new browser window. These secondary .html pages will not open even though they previewed fine in Flash after being published. All these files are located within the local root folder. This is an example of the script I used:
on (release) {
getURL ("file:///Users/kellyhalpern/Desktop/KellyHalpern.com/Click2Lose_Branding.html",1);
}
the website is available for viewing at www.kellyhalpern.com- thank you for your help
Sincerely,
Kelly Halpern
Edited: 06/02/2008 at 08:48:46 AM by KellyHalpern
View Replies !
View Related
Html Pop Up Tutorial With Site Using Load Movie.
I am trying to impelement several html pop up windows from within a flash site using the centered pop up tutorial on this site.
the html pop ups work fine when previewing the individual .swf files which they are contained.
However. I am using the Load movie command to load seperate .swf files into a main site swf file. When the sub sections are loaded into the main swf file and I preview in a browser, I am unable to get the html pop up buttons to function properly.
I Imagine this could be something to do with the main flash file not recognising the scripting contained within the sub .swf file, does any body have any idea how I can get this to work.
any help would be much appreciated.
Thanks
Jack
View Replies !
View Related
Flex Load HTML Site On Page Open
Hey there
I am really new to using flex on my mac, and have been playing about with it & its brilliant.
I have got 1 query as i am still learning to code just now. Is there a way to write the code to load a webpage into the project. ??
for e.g. i want to load a specific page of my site that has music and videos on it, but i dont want the links to be openly available to download, so i was thinking to have a flex project as my index file, which means its only a .swf file that would show up in the source code, I know it won't totally protect the file from being downloaded as that is inevitable - but i am just wanting it to be slightly harder if possible.
But i don't know how i would code this in flex, ?? Could anyone help me at all please.
Many Thanks
View Replies !
View Related
Html --> Redirect To Flash Site And Load Specific Movie
This will take a while to explain..
I have a website done in one main flash which calls up external swf. If the user does not have Flash 6 player, they will be redirected to the HTML site. However, users coming in via search engines will most likely end up in the HTML site. So the boss has asked me to add some magic codes into every HTML page to check the user for presence of flash player. If the user has it, then they will be redirected to the FLASH site BUT the trick is, it has to load the exact corresponding swf of the HTML page they were redirected from!!!! Any Flash Merlins out there with that kind of magic to teach me how to achieve such miracles? I cannot afford to restructure my Flash cuz my navigations are in the main movie and every page is in individual external swf to be loaded into a blank container in the main mov when they are called.
I'm building with Flash MX
View Replies !
View Related
Html Driven Music Player To Load In Flash Site.
Hi, I have a html code which contains my mp3 player settings but I would like it to launch in flash when someone visits my site. How do i tell flash to play the code so when people visit my flash site: my player will launch from the html code sources.
To go over that again if you didn't get it:
I have a snocap html code and I want the player to launch with my music off my flash site can this be done?
View Replies !
View Related
Multipal Embeds Of A Swf With SWF Object
I have a page (XHTML) on which I'm embeding multipal instances of a single SWF (a dynamic MP3 Player). To avoid the bounding box issue with IE I've selected the SWF Object Javascript embed process. However, in IE, only the first swf populates may page; all the other embeds load the alternitive content to the <div>'s which should hold the SWF's.
All works fine in Firefox.
Wondering if anyone else has come across this and found a solution?
Advice?
Thanks!
View Replies !
View Related
Multiple Font Embeds
I have multiple dynamic textfields and am using the same pixel font in each. First question, in the characters palette when you embed the font (basic latin) and you do that for all your textfields (with the same font) are you increasing the file size of your .swf with each embedded textfield?
Second. I know you can use TextFormat and apply that to all textfields but all my textfields have masks and dynamic scrollers. I think I read the only way to embed a font with TextFormat on a masked dynamic textfield is to set the mask via AS ( setMask() ). Is this true? I tried before but it didn't work, maybe I did something wrong.
I'm not in the situtation at the moment to get real complicated, tricky, and slick with things. So in other words I'm looking for a simple solution, if there is one.
Thanks.
m/
View Replies !
View Related
Font Embeds With AS - Dynamically Created Textfields
OK, so having some problems again this morning with font embeds (I think) with a dynamically created textfield.
Code I'm using (which is not displaying jack):
ActionScript Code:
var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0x000000;
my_fmt.size = 12
my_fmt.font = "Rabiohead";
my_fmt.align = "left"
this.createTextField("res_description", 1, 0, 25, 150, 20);
// res_description.multiline = true;
res_description.wordWrap = true;
res_description.autoSize = true;
res_description.embedFonts = true;
res_description.htmlText = true;
res_description.setTextFormat(my_fmt);
res_description.text = "This is a test";
"Rabiohead" is the font. I've tried adding it to the library and setting it's linkage settings to export for AS. tried the Linkage ID in the my_fmt.font = "Rabiohead"; part, but to no avail.
So far, the only way it's working, is if I set embedFonts to false.
Any ideas?
View Replies !
View Related
Banner And Site Statistics
Something weird happened.
Im testing a website statistics by having a banner made in flash on website A that links to site B. Supposedly, the statistics of site B should indicate that x number of hits came from site A.
But it doesnt. It includes any hits coming from that flash banner as 'direct url or bookmarked'. Anyone have any idea of why?
The link was made as usual, a button with geturl _blank
any ideas?
View Replies !
View Related
How Do I Make A Banner For A Web Site Logo
I would like to make a "RAY" effect like the sample in Swish 2.0. I plan to use it as the logo on the top of my web site. I have the flash buttons and like thier style and I'm trying to match my theme. Simple is good for me.
I have Swish and Macromedia FX I would like my banner to simply write "Otto Productions" in this 'Ray' effect.
Thanks
Frank
www.djotto.com
djotto.com
View Replies !
View Related
Adding A Flash Banner To A Site?
I have an assignment due well it is past due and has to be in today! I can not for the life of me get it to show up in Dream weaver or when i open my file with my browser. I have no idea what I am doing wrong, I am using flash 8 along with Dream weaver 8 to do this if that helps any. Can anyone help me please?
View Replies !
View Related
Site Continually Opening With Flash Banner Add
Hi everyone.
Ive got a banner add in which I have the following action:
Code:
this.onMouseDown = function() {
getURL("http://www.site.com.au/banner.asp?ID=35", "_blank"); };
which we have on our background layer.
and for all our testing works 100% OK in MSIE, Firefox, Netscape etc
But, the site on which it has been placed (external site) is getting reports from users that the banner add is causing the target site
(site.com.au) to automatically "popup", and from what we can decipher, and keeps popping up even when the browser with the external site is minimized.
One person who has had the problems says they have Win98 and MSIE 5.5 (5.50.4522.1800IS).
Have I done something seriuosly wrong in the code above ... as it would appear that each loop of the Banner Add opens a new Window.
View Replies !
View Related
Newbie Question - Would Like To Add Banner Rotator To My Site
Hello:
I would like to add a banner rotator to my site and incorporate several banners to take turns showing. Is there somekind of script that I could just add to my site to make this work? I am not all that familiar with html or flash. I make all changes to my site through Frontpage.
Any suggestions and instructions would be great!
Thanks so much.
Mindy
http://www.wahparents.com
View Replies !
View Related
Banner With Link To Site Doesn't Work
Hi to all.
Am just learning flash. Have created two ad banners with invisible button that points to a web site. Both are basically the same except for dimensions and one of them has additional layers showing a lightning effect.
Followed the Flash Tutorials in Flash Help to create button with specific action -
inv_btn.onRelease = function(){
getURL("http://...com", "_blank");
};
Problem is one of them works when clicked upon and the other doesn't.
.fla file is attached if anyone wants to check.
Would appreciate any assistance in finding problem!
regards
rgb3
View Replies !
View Related
Make Poverty History Banner On Flash Site
Hi folks,
I recently tried to insert the 'Make Poverty History' banner that you may have seen on some websites onto my own. The banner displays in the top right hand corner of your website when you add the html code to your site.
I run a flash website, so when I add the code to my html, the banner gets hidden behind all of the flash content. I was therefore wondering if some kind soul out there could shed a bit of light on how to get the banner infront of the flash stuff if at all possible.
I have included my html source below. The website states that the banner code (also displayed below) should be included after the 'body' tag. When I do this, the banner becomes hidden behind all the flash content.
I hope all this is making sense to at least someone out there as I am desperate to display the link for such as worthwhile cause.
My HTML code . . .
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html40/loose.dtd">
<html><head>
<title>KEEP-mwpres_webindex</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="author" content="">
<meta name="generator" content="SWiSHmax http://www.swishzone.com">
<meta name="description" content="KEEP-mwpres_webindex">
<meta name="keywords" content="18, 2004, 2005, about, above, advertised, all, although, animated, animation, animations, any, around, artist, as, asked, at, august, banners, bbc, below, bmp, both, bristol, butons, button, buttons, by, can, cc, click, clicking, clients, co, comments, contact, create, decided, design, designed, designing, designs, domain, each, educational, either, england, event, february, feel, file, files, filmed, final, first, flash, for, free, full, further, gif, graphics, guestbook, head, honoured, hosting, html, in, information, installed, intros, is, january, jpg, june, kindly, laduk, larger, last, launch, leave, left, like, link, list, listed, local, logos, look, mail, michael, midlands, mw, mwpresentations, my, names, news, not, note, now, numerous, off, old, one, online, only, opening, order, over, own, page, place, please, portfolio, presentations, prices, programme, project, projects, provide, put, quiz, quote, ranging, recently, regional, repective, request, requested, scale, school, science, secondary, section, see, seen, selection, sent, september, sequence, sequences, sign, simple, since, site, small, static, student, supplied, swf, swfs, taking, thanks, that, this, three, title, titles, two, uk, uni, using, via, visiting, watercolour, website, websites, welcome, west, will, wood, work, workshop, www, year, years, your, £100, £120, £140, £15, £160, £20, £25, £35, £40, £60, £80">
<!-- text used in the movie -->
<!-- 18, 2004, 2005, about, above, advertised, all, although, animated, animation, -->
<!-- animations, any, around, artist, as, asked, at, august, banners, bbc, below, -->
<!-- bmp, both, bristol, butons, button, buttons, by, can, cc, click, clicking, -->
<!-- clients, co, comments, contact, create, decided, design, designed, designing, -->
<!-- designs, domain, each, educational, either, england, event, february, feel, -->
<!-- file, files, filmed, final, first, flash, for, free, full, further, gif, -->
<!-- graphics, guestbook, head, honoured, hosting, html, in, information, -->
<!-- installed, intros, is, january, jpg, june, kindly, laduk, larger, last, -->
<!-- launch, leave, left, like, link, list, listed, local, logos, look, mail, -->
<!-- michael, midlands, mw, mwpresentations, my, names, news, not, note, now, -->
<!-- numerous, off, old, one, online, only, opening, order, over, own, page, place, -->
<!-- please, portfolio, presentations, prices, programme, project, projects, -->
<!-- provide, put, quiz, quote, ranging, recently, regional, repective, request, -->
<!-- requested, scale, school, science, secondary, section, see, seen, selection, -->
<!-- sent, september, sequence, sequences, sign, simple, since, site, small, -->
<!-- static, student, supplied, swf, swfs, taking, thanks, that, this, three, -->
<!-- title, titles, two, uk, uni, using, via, visiting, watercolour, website, -->
<!-- websites, welcome, west, will, wood, work, workshop, www, year, years, your, -->
<!-- £100, £120, £140, £15, £160, £20, £25, £35, £40, £60, £80 -->
<!-- urls used in the movie -->
<!-- http://www.a-free-guestbook.com/guestbook.php?username=mwpres, -->
<!-- http://www.billjeynes.uni.cc, http://www.laduk.co.uk, -->
<!-- http://www.updatebristol.co.uk -->
<!-- Created by SWiSHmax - Flash Made Easy - www.swishzone.com -->
</head>
<body bgcolor="#CCCCCC">
<center>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0"
id="KEEP_mwpres_webindex" width="100%" height="100%">
<param name="movie" value="KEEP-mwpres_webindex.swf">
<param name="bgcolor" value="#CCCCCC">
<param name="quality" value="best">
<param name="loop" value="false">
<param name="menu" value="false">
<param name="scale" value="exactfit">
<param name="allowscriptaccess" value="samedomain">
<embed type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
width="100%" height="100%"
name="KEEP_mwpres_webindex" src="KEEP-mwpres_webindex.swf"
bgcolor="#CCCCCC" quality="best"
loop="false" menu="false"
scale="exactfit"
swLiveConnect="true" allowScriptAccess="samedomain"
></embed>
</object>
</center>
</body>
</html>
The Banner Code . . .
Code:
<script type="text/javascript" src="http://www.makepovertyhistory.org/whiteband_small_right.js"> </script><noscript><a href="http://www.makepovertyhistory.org/"> http://www.makepovertyhistory.org</a></noscript>
Best Wishes,
Michael Wood
View Replies !
View Related
Have Some Flash Banner SWF Files Play Within The Portfolio Page Of My Site
I've been working on my first full blown flash site for a few weeks, tackling problems as I encounter them, and I've learned a lot...but sometimes the simplest things I cannot figure out for the life of me. All I am trying to do is have some flash banner SWF files play within the portfolio page of my site. I don't want them to open in a pop up or anything just play within the page when the link on my site is clicked. I figured it would act like a movie clip and I could just drop it onto the stage, but when I do that it doesn't look right, loops continuously, and is not interactive. How can I make this work?
View Replies !
View Related
Can't Get Banner To Load
Hello,
I've have a small banner that I made long ago in Flash 4 and would like to upload it to show someone. The code I used before when I had it on a page doesn't seem to be working now. The banner doesn't load. I have the index.html and the drive-drunk.swf in the same folder (FLASH-DD)
If I use a URL with just the flash banner as the end of the addess I can view it online with the Flash 7 viewer: http://www.eburg.com/~zobrist/FLASH-DD/drive-drunk.swf
It is oversized without the code to size it. But when I use the code:
http://www.eburg.com/~zobrist/FLASH-DD/index.html
I get a blank spot.
This is the short code.
<!....<HTML>
<BODY BGCOLOR="#000022">
<FONT COLOR="#FF0000">
<BR>
<BR>
<BR>
<center><B>
Just add some text & link that would show who put it up.<BR>
<BR>
<BR>
<OBJECT
CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
WIDTH="468" HEIGHT="60" border="0" vspace="0" hspace="center"
CODEBASE="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0">
<PARAM NAME="MOVIE" VALUE="FLASH-DD/drive-drunk.swf">
<PARAM NAME="PLAY" VALUE="true">
<PARAM NAME="LOOP" VALUE="true">
<PARAM NAME="QUALITY" VALUE="high">
<EMBED SRC="FLASH-DD/drive-drunk.swf"
WIDTH="468" HEIGHT="60"
PLAY="true" LOOP="false" QUALITY="high"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash">
</EMBED>
</OBJECT>
</center>
</BODY>
</HTML>.....>
Can anyone tell me what I need to do?
Thanks for your help.
Mary Anne
View Replies !
View Related
Flash Banner And Html Txt
I have made a flash banner with the buttons I need for the site. I am thinking of making a 2 row table in Dreamweaver. Putting the flash banner i the top row and the text for the different buttons in row 2. What would the action script for the buttons in the banner be?
View Replies !
View Related
Flash Banner And Html
If I create the banner which contain navigation made by flash but the body is done by dreamweaver, I mix the banner and the body part(content) in dreamweaver, Do anyone how can I link page by page? Can I link them internally? (like C:/Download/xx.html)
Any help is appreciate
View Replies !
View Related
Flash Banner Over HTML
<Hi?
I need to create a banned that on rollover, the flash movie goes over HTML/PHP code?
How could I do this, do you guys have any example? I'm really wondering how some people does that. I guess the flash movie needs to have the highest z-index??
Thanks,
DAvid >
View Replies !
View Related
Expanding Banner Over HTML
Hi everyone, I need to create an expanding banner that will expand as users interact... rollover or click (not sure yet). Can anyone give me a hand here? I dont have motif. I am sure I can do it without it...
HELP!!!
View Replies !
View Related
Banner - Load / Reload
I have a site that I have coded in php using a header.inc.php file. I want to add a flash banner to it. For the opening page I want it to have an animation and "build" the banner. Then when you click and go to another page I want the same flash banner up at the top but not to "build" again. Is it possible to add an action that when the button is pushed to load the php page but jump to a different part of the movie say further down the timeline where it scipts has finished the building?
Thanks for you help.
View Replies !
View Related
Load Movie (Banner)
I have problems with the load movie variable part Im trying to put up a banner on my site that has a link to it and such as a example http://www.exampl.com/example.swf how would I possition it to that so It would be at the top of my page or just posistion it where ever I want and so It appears on my page I hope I didnt make this sound too confusing.
Thanks for any Help!
View Replies !
View Related
Banner In Form To HTML Page
I am trying to make a form in a Banner that when you click, it passes the info to the page and give you the information. I have been reading the PHP with emails, and its not getting the feilds to go to the page.
I have tried "loadVariablesNum" and "getURL" but nothing gets passed. I am useing a drop down, radio buttons, and a text box. Am I suppose to get the radio buttons into a var somehow?
Thanks in advance
Eric
View Replies !
View Related
Flash Banner That Pop Ups Html With 'no Resize'
I have a Flash banner that pop ups html with 'no resize',
no scrolling, no title navigation bars, .......nothing.
I should just place a button over top of the banner.
<but the code to get url........?
I have the javascript code to do it perfectly.
<A HREF="#" TARGET="_self" onClick="window.open('Demo.html','Demo','toolbar=n o,width=650,height=500,left=175,top=100, status=no,scrollbars=no,resize=no');return false">
Launch Demo</A>.
, but in action script
?????
Thanks in advance
View Replies !
View Related
HTML Site Map Linking To Pages In Flash Site
Hey all,
There's a button in our flash template that is for a site map. To get better indexing results, we decided to have that button link to an html site map on our website, and then have the html links go back to the flash site. Is that plausible? How would one go about doing something like that, if it IS possible? If someone could give me a hand, that'd be great!
Thanks,
Jensey
View Replies !
View Related
Using A Preloader To Load A Flash Banner
Hey guys,
I was wondering if anyone could tell me exactly how to use a preloader to load a flash banner that will be the "header" of a website.
Do I just make the preloader in the scene before the flash header...or is there a special way to code it in HTML ?
Or do you just have the index page be /flash.swf and then the preloader will automatically direct you to the next page with the flash banner at the top ?
Any help is appreciated, thanks!
Does anyone have a link to a good preloader with progress bar (where you can change the style and color) on theM ? Thanks!
View Replies !
View Related
Flash Navigation Banner/ HTML Frames
I have a flash banner that I created that will be in the top portion of a html frameset I have created. The content will load at the bottom (frame name is "view".) I am using CS3 and AS 2.0.
The buttons in the flash file are movies with a button inside. on the buttons are the code :
on (release) {
getURL("company.html", "view");
}
Now what this has been happening is that instead of the linked page displaying in the bottom frame it has opened a new window.
After I searched a bit on the internet, I found someone suggested to use this:
on (release) {
getURL("company.html", "view", "POST");
}
It seemed to work once until I started to add the code to more buttons. Am I missing something here?
View Replies !
View Related
Calling Javascript In Html From Flash Banner
hi everyone I have a flash banner that needs a dropdown menu on one of its buttons. I have a javascript for that dropdown menu but my problem is, I don't know how to call javascript in flash... I have tried using fscommands and getURL in flash but I don't know what I will put in the fscommand. Below is the getURL I put in my flash banner to call the function that performs the dropdown menu in the javascript code (which I also pasted below):
in flash banner:
on (release) {
ActionScript Code:
getURL("text/javascript: dropdownmenu(this, event, menu1, '200px')");
}
Javascript code of dropdown menu:
<script language=JavaScript type="text/javascript">
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function ctbanner_DoFSCommand(command, args) {
var ctbannerObj = InternetExplorer ? ctbanner : document.ctbanner;
var menu1=new Array()
menu1[0]='<a href="companyprofile.htm">Company Profile</a>'
menu1[1]='<a href="mission.htm">Mission</a>'
menu1[2]='<a href="vision.htm">Vision</a>'
menu1[3]='<a href="employeecom.htm">Employees Commitment</a>'
menu1[4]='<a href="presidentscorner.htm">Presidents Corner</a>'
var menuwidth='165px' //default menu width
var menubgcolor='lightyellow' //menu bgcolor
var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?
var ie4=document.all
var ns6=document.getElementById&&!document.all
if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';backg round-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}
function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="rollOver")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWid th-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeig ht-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeigh t
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHe ight
}
return edgeoffset
}
function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}
function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)
if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}
return clickreturnvalue()
}
function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}
function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}
function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}
function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}
if (hidemenu_onclick=="yes")
document.onclick=hidemenu
function MM_checkPlugin(plgIn, theURL, altURL, autoGo) { //v4.0
var ok=false; document.MM_returnValue = false;
with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) {
ok=(plugins && plugins[plgIn]);
} else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1
if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash;
else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) ok=window.MM_dir;
else ok=autoGo; }
if (!ok) theURL=altURL; if (theURL) window.location=theURL;
}
function MM_checkBrowser(NSvers,NSpass,NSnoPass,IEvers,IEpa ss,IEnoPass,OBpass,URL,altURL) { //v4.0
var newURL='', verStr=navigator.appVersion, app=navigator.appName, version = parseFloat(verStr);
if (app.indexOf('Netscape') != -1) {
if (version >= NSvers) {if (NSpass>0) newURL=(NSpass==1)?URL:altURL;}
else {if (NSnoPass>0) newURL=(NSnoPass==1)?URL:altURL;}
} else if (app.indexOf('Microsoft') != -1) {
if (version >= IEvers || verStr.indexOf(IEvers) != -1)
{if (IEpass>0) newURL=(IEpass==1)?URL:altURL;}
else {if (IEnoPass>0) newURL=(IEnoPass==1)?URL:altURL;}
} else if (OBpass>0) newURL=(OBpass==1)?URL:altURL;
if (newURL) { window.location=unescape(newURL); document.MM_returnValue=false; }
}
}
//-->
</SCRIPT>
Please help me guys, I really need it badly. Thanks!
View Replies !
View Related
Rollout Interaction Banner (in A HTML Page)
hi i'm building a banner, with some kind of interaction.
i've made a animation that loops in the background,
the goal is to get the banner interact when you rollover over it, so that a different moveiclip appears.
this is quite simple to do, but my problem is when the mouse pointer moves away from the banner. it's supposed to close the interacting mc on top through means of an animation. what's the best possible way to do this.
i've tried the following. :
Hit Test method :
ActionScript Code:
myMc.onEnterFrame = function() { if(this.hitTest(_root.mcInterActive.myMc)) {
trace("hit")
gotoAndPlay("stayopen");
}
};
the probleem seems to be when i navigate outside of the banner (it's placed in a HTML page btw) flash thinks the mouse pointer is still inside of the banner!?
i tried a different approach with the myMC.onRollOut method but no luck either, i then crop the mc with the RollOut 10px smaller then the full size but that only seems to work when you move you're cursor slowly out of the banner.
i really need some help... thanks.
View Replies !
View Related
Flash Site Versus HTML Site
My website is 100% Flash and my content is all Flash games.
I have read that having a Flash website is a disadvantage if you are trying to create a popular website and get a high Alexa ranking.
My Alexa rating is 13,000. But, I wonder if it could be higher with an html based site.
Do you think I should create my site in FrontPage or some html website builder?
Thanks.
Eric
www.nationlocation.com
View Replies !
View Related
[F8] Flash Site Inside HTML Site
I have Flash site that's inside HTML site. The problem is that the links inside flash don't work when i use site with the HTML site. (The links work randomly, the connect to wrong swf, but they work on the second clicking correctly)...
Doesn't Flash link work inside HTML? What Should i do? !Need help quickly!
View Replies !
View Related
HTML Code For Flash Banner With Xml Database?Helpplease
Hi guys
Iam new here and with flash and I have a big problem with my flash.
I create a flash based on tutorials around internet and Iam stucked
in the HTML code wich load only the "flash.swf" file but I need it to load
all my file the a couple of "images","flash.swf" and "code.xml".
My html code for load a flash banner is this.
Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0"
id="name" width="468" height="60">
<param name="movie" value="http://www.yourdomain.com/flashfile.swf">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<embed name="name" src="http://www.yourdomain.com/flashfile.swf"
quality="high" wmode="transparent" width="468" height="60"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash">
</embed>
</object>
What I need to change on it to load the others files together??
Thank alot
View Replies !
View Related
A Square Flash Banner Inside A Curved Html Container?
My boss wants a third party flash banner (advertising, etc) inside a curved HTML container.
He said you can make the flash sit in the background, whilst another colleague mentioned masking as a way around it.
I'm not even sure if its possible to do this, unless I put in a background image which sits in-front of the div which holds the actual flash.
Even so, is there a way of putting a square flash banner inside a curved html container, even if it means using mootools or jquery to accomplish this?
Thanks.
View Replies !
View Related
One Flash Banner Plays Differently When Viewer First Visit The Site And When Viewer N
I have a flash banner at the top, when the viewers first come to my site, my flash banner plays the way I want, when viewers start to navigate my site and got redirected to other pages within my site, the flash banner on the top will paly the same way as the page loaded at the first time, this is kind of annoying, I would like the flash to play once especially the flying buttons, when the visitor trying to buy something on my site, the flash should stay still, don't play the action again and again on every page, How do I do that?
you can see my example at http://leafshoppingcart.viperhosting.net/xcart/
Thanks in advance
View Replies !
View Related
|