Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

flash/html question 1

Status
Not open for further replies.

Javrix

Technical User
Nov 9, 2000
115
US
Take a look at the following code:

<OBJECT classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; WIDTH=748 HEIGHT=97>
<PARAM NAME=movie VALUE=&quot;urbannerhome.swf&quot;>
<PARAM NAME=quality VALUE=best>
<PARAM NAME=salign VALUE=T>
<PARAM NAME=wmode VALUE=opaque>
<PARAM NAME=bgcolor VALUE=#000066>
<EMBED SRC=&quot;urbannerhome.swf&quot; QUALITY=&quot;best&quot; WMODE=&quot;opaque&quot; BGCOLOR=&quot;#000066&quot; WIDTH=&quot;748&quot; HEIGHT=&quot;97&quot; TYPE=&quot;application/x-shockwave-flash&quot;>
</OBJECT>

Now, if someone does not have flash, is their anyway I can make like another layer below where the flash is supposed to be, and say If you can see this click here, and have that link point to macro's dl site? I don't like the autoprompt for download, thats why i took it out. Is this javascript I need to create?
 
You should be able to do this simply in your html!
Many sites have it. A small Flash animation running on one side with the text line &quot;If you see this animation... Enter Flash version!&quot; And somewhere else on the page is the link to download or a link to a straight html version of the site!

I don't have much time today, so you should try to find one of those sites and have a look at the source code. Mind you, it not that difficult, if you've mingled with html before, to build your own!

B-)
 
I know that. I'm talking in the actual page. Not a pre-main page, on my main page! Ok, if you have flash, good, you see the flash component, but if you don't have flash, and I DO NOT want a pre-enter page, how can I put something where the flash component is supposed to be, but with something that says If you can see this, Click here. And it would take them to macro's dl flash5 page.
 
If I now undestand you correctly... I guess you could have another layer/div come up if the player is not installed, but without testing this in a pre-enter page YOU DO NOT WANT..., I figure the only way you could detect, on your main page, the fact the player is NOT installed is by intercepting the autoprompt call and redirect it to your own pointing mechanism to the download site. In the end, isn't the outcome basicly the same? And what if, as a user, I don't want to have to download Flash to have acces to your site!

If you still want to go ahead with this and NOT HAVE a pre-enter page, maybe javascript can do it, that is intercepting the autoprompt call, but I certainely coundn't write it. Sorry! Maybe ask the guys on the javascript forum!

Regards,

;-)
 
Ok, thanks. Yeah, I don't want a pre-enter page. You can see why if you go to unitedrecruiters.com
 
The map is where I would like to put the line that says click here if you cannot see the map.
 
The problem is I SEE IT!
Good luck!
Catch you later!
Please do come back and tell us about a solution if you find one!

B-)
 
I know you can see it. So can I. I'm trying to make a solution for people who don't have flash installed in their browsers. I'll let you know if I find the solution.
 
How about simply putting the flash code in a layer on top of your &quot;redirect message&quot;
Then if you haven't Flash you'll see it and if you do you'll see the map instead.
Something like this ->

<div id=&quot;Layer1&quot; style=&quot;position:absolute; left:110px; top:66px; width:183px; height:136px; z-index:1&quot;>
<OBJECT classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; WIDTH=748 HEIGHT=97>
<PARAM NAME=movie VALUE=&quot;urbannerhome.swf&quot;>
<PARAM NAME=quality VALUE=best>
<PARAM NAME=salign VALUE=T>
<PARAM NAME=wmode VALUE=opaque>
<PARAM NAME=bgcolor VALUE=#000066>
<EMBED SRC=&quot;urbannerhome.swf&quot; QUALITY=&quot;best&quot; WMODE=&quot;opaque&quot; BGCOLOR=&quot;#000066&quot; WIDTH=&quot;748&quot; HEIGHT=&quot;97&quot; TYPE=&quot;application/x-shockwave-flash&quot;>
</OBJECT></div>
<div id=&quot;Layer2&quot; style=&quot;position:absolute; left:110px; top:66px; width:183px; height:136px; z-index:2&quot;>Click here to....</div>

- is that any help?
 
Hi there,

you may want to use a script to detect your flash. And if the user doesn't have the flash plugin, it'll display a static graphic over it (the area of the flash movie).


<!-- begin the OBJECT tag, which will be understood by ActiveX-capable browsers -->
<OBJECT CLASSID=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; CODEBASE=&quot; WIDTH=&quot;400&quot; HEIGHT=&quot;240&quot; NAME=&quot;sw1&quot; ID=&quot;sw1&quot;>

<PARAM NAME=&quot;Movie&quot; VALUE=&quot;tagline.swf&quot;>
<PARAM NAME=&quot;quality&quot; VALUE=&quot;high&quot;>
<PARAM NAME=&quot;Loop&quot; VALUE=&quot;true&quot;>
<PARAM NAME=&quot;play&quot; VALUE=&quot;true&quot;>


<!-- begin the JavaScript -->

<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
<!-hiding contents from old browsers

//If this browser understands the mimeTypes property and recognizes the MIME Type
//&quot;application/x-shockwave-flash&quot;...

if (navigator.mimeTypes && navigator.mimeTypes[&quot;application/x-shockwave-flash&quot;]){

//...write out the following <EMBED> tag into the document.
document.write('<EMBED SRC=&quot;final.swf&quot; WIDTH=&quot;400&quot; HEIGHT=&quot;240&quot; LOOP=&quot;true&quot; QUALITY=&quot;high&quot;>');
}

//Otherwise,...
else {

//...write out the following <IMG> tag into the document. The image need
//not be the same size as the Flash Player movie, but it may help you lay out the
//page if you can predict the size of the object reliably.
document.write('<IMG SRC=&quot;graphics/indexpic.jpg&quot; WIDTH=&quot;400&quot; HEIGHT=&quot;240&quot; ALT=&quot;Non-Shockwave Welcome&quot;>');
}


//Done hiding from old browsers. -->
</SCRIPT>

</OBJECT>
<!-- Close the OBJECT tag. -->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top