Solved

SWFAddress & SWFObject alternate content

Posted on 2009-04-13
7
1,109 Views
Last Modified: 2013-11-11
Hi,
 
i have used SWFAddress and SWFObject in my flash site.
 
I did just like the example, using one HTML file which contains the SWFObject that has alternate content.
 
 
SWFAddress works as expected and changes the title and url.
 
 
the problem is I need this site to be "good" for SEO and PPC, therefor I need to be able to display alternate HTML based content to spiders.
 
I need to have multiple HTML files that spiders can visit and count, I need to be able to target the html version from PPC ads directly to a specific page (content).
 
the current situation is that I have one alternative content (SWFObject) and one big SWF file controled by SWFAddress with deep link capabilities
 
what is the recommended method to have multiple HTML files, with alternative content while still using SWFObject and SWFAddress ?
 
 
thanks
<div id="content">

            <p>In order to view this page you need JavaScript and Flash Player 8+ support!</p>

        </div>

        <script type="text/javascript">

        // <![CDATA[

            var so = new SWFObject('c.swf', 'c', '1008', '570', '8', '#000000');

            so.useExpressInstall('swfobject/expressinstall.swf');

            so.addParam('menu', 'false');

            so.write('content');

        // ]]>

        </script>

Open in new window

0
Comment
Question by:moshem
  • 4
  • 3
7 Comments
 
LVL 49

Expert Comment

by:Roonaan
ID: 24141401
You define your alternate content just in your <div id="content">.

For spiders this is all the content they see. So if you want to have multiple htmls with alternative flash content, you can use the same page framework with different content in the content div.
0
 
LVL 1

Author Comment

by:moshem
ID: 24142349
Yes, thats the straightforward and ugly way...and may I say manual.

but what bothers me the most is that these html pages links (URL) will be different from the one normal users will see (flash content).

that means my site will violate google's guidelines... on showing different links and content to users and spiders...
0
 
LVL 49

Expert Comment

by:Roonaan
ID: 24144889
The url changing is the basic downside of using swf address or any flash history manager, or even flash for that matter.

Depending on your serverside language the content management can be manual and ugly, or automatically and easy.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 1

Author Comment

by:moshem
ID: 24145197
what do you mean automatic ? I am using ASP (not .NET)

is there a way to make the html URLs and Flash inner URLs to be the same ?
0
 
LVL 49

Expert Comment

by:Roonaan
ID: 24145400
I assume Google will not discredit you for having asppage.asp?xml and asppage.asp?html will they?
0
 
LVL 1

Author Comment

by:moshem
ID: 24145440
Roonaan,

can you please elaborate on that a little ?
0
 
LVL 49

Accepted Solution

by:
Roonaan earned 500 total points
ID: 24145542
Well, in your flash you can dynamically load content from the same asp script file that holds the alternative content.

So you create a .asp or .aspx file which outputs flash-targetted xml when you call it with asppage.asp?xml and plain html otherwise.

Then in your alternative content you can use plain links to the different asp files, while the flash uses the same content, but just loaded as xml.

You could even have a single asp page which you call like

asp.aspx?section=123
asp.aspx?section=456
While your flash uses
asp.aspx?section=123&mode=xml
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The goal of the tutorial is to teach the user how to how to record live broadcast.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now