Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How can i add HTML on top of Flash

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 23-12-2009
Member
 
Join Date: Dec 2009
Posts: 71
How can i add HTML on top of Flash
  

I would like to add html on top of Flash for SEO pusposes. Since using Flash for a banner or for navigation or any other purposes cannot be read by the search engines. That's why i would like to add HTML on top of the Flash file? Suggest me some ways to achieve this? Also i am using Dreamweaver Flash 8

Reply With Quote
  #2  
Old 23-12-2009
Member
 
Join Date: Apr 2008
Posts: 1,944
re: How can i add HTML on top of Flash

If you want to add HTML on top of a Flash Banner this can be achieved if you do these two following important things . Create to divs with different "Z-index" and the flash movies should have the parameters "wmode=transparent". Also moving farther put divs inside of container divs so that the center of stage could be occupied by the Flash. and the top flash could be positioned correctly. according to our needs.
Reply With Quote
  #3  
Old 23-12-2009
Member
 
Join Date: May 2008
Posts: 2,001
re: How can i add HTML on top of Flash

For solving this issue i would like to give you the following segment of code . I think this will help you.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>HTML on top of Flash</title>
</head>
<body bgcolor="#ffffff">
<div style="z-index:1; position:absolute; left:35px; top:100px; color:cyan; font-weight:bold; border: 1px solid blue;">Text below Flash movie</div>
<div style="z-index:3; position:absolute; left:35px; top:145px; color:red; font-weight:bold; border: 1px solid red;">Text above Flash movie</div>

<div style="z-index:2; position:relative; width:225px; height:225px; border: 1px solid #666;">
<!--url's used in the movie-->
<!--text used in the movie-->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="200" height="200" id="HTML_on_top_of_Flash_Test" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="file_name _of_the _flash_banner.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="wmode" value="transparent"><!-- note this is the most important line -->
<embed src="file_name _of_the _flash_banner.swf" quality="high" bgcolor="#ffffff" wmode="transparent" width="200" height="200" name="HTML_on_top_of_Flash_Test" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</div>
</body>
</html>
Reply With Quote
  #4  
Old 23-12-2009
Member
 
Join Date: Apr 2008
Posts: 1,993
re: How can i add HTML on top of Flash

HI
if you add an HTML onto the Flash banner i think you will be considered as a spam user and the search engine will consider it as "cloaking" And this will get you banned from the search result . so please be aware of the consequences if you are about to take such a step . Also what i think is the search engines like Google can read Flash .
Reply With Quote
  #5  
Old 23-12-2009
Member
 
Join Date: May 2008
Posts: 2,283
re: How can i add HTML on top of Flash

If you really require HTML navigation at the top , Treat it as you would any process for graceful degradation or backwards compatibilty. I am not aware if there is any techniques available that allow code to detect if flash is working, Otherwise fallback to standard navigation. Also iwould not immediately recognize it as cloaking. Try incorporating a footer with all the proper navigation if you want to avoid this potential stigma.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How can i add HTML on top of Flash"
Thread Thread Starter Forum Replies Last Post
Issues Using Flash into HTML Abhibhava Software Development 3 23-01-2010 04:55 PM
How to Render xml text as html in Flash Abraham.J Software Development 3 15-09-2009 08:16 PM
Flash as HTML background Gap meer Software Development 3 23-04-2009 10:33 PM
Problem Loading Flash in HTML Kusagra Software Development 4 25-03-2009 10:42 AM


All times are GMT +5.5. The time now is 01:08 AM.