Pros and Cons of Flash
Should you use flash on your website?
Pros and Cons of Flash Should you use flash on your website?
#21
Posted 28 February 2008 - 10:19 AM
Yeah, let me congratulate you as well. It's very nice, I might be getting back to you about this some day if that's ok!
#22
Posted 28 February 2008 - 11:05 AM
No worries! I'll post the code I used here so that you can refer back whenever you want:
First, here is the xhtml I used in the body of my document:
Which I styled with this CSS to simulate a basic menu item:
In the head of the document, I linked to SWFObject.js:
And at the very bottom of swfobject.js, I added this java script:
As far as I can tell, any elements can be set inside the div that I named flashcontent. It is replaced using innerHTML, which is a javascript command that basically overwrites anything that is between the div tags. So you can code your whole menu into there if you want.
First, here is the xhtml I used in the body of my document:
<div id="flashcontent"></div>
Which I styled with this CSS to simulate a basic menu item:
#flashcontent
{
background: url(no_flash_up.png) no-repeat 0 0;
width: 463px;
height: 102px;
}
#flashcontent:hover
{
background: url(no_flash_down.png) no-repeat 0 0;
}
In the head of the document, I linked to SWFObject.js:
<script type="text/javascript" src="SWFObject.js"></script>
And at the very bottom of swfobject.js, I added this java script:
window.onload = function()
{
var so = new SWFObject("with_flash.swf", "flashcontent", "463", "103", "8", "#FFFFFF");
so.write("flashcontent");
}
As far as I can tell, any elements can be set inside the div that I named flashcontent. It is replaced using innerHTML, which is a javascript command that basically overwrites anything that is between the div tags. So you can code your whole menu into there if you want.
<a href="http://www.jaypan.com" target="_blank">Jaypan</a>
<a href="http://www.dudes-japan.com" target="_blank">Dudes Japan</a>
<a href="http://www.dudes-japan.com" target="_blank">Dudes Japan</a>
#23
Posted 28 February 2008 - 11:13 AM
I think what we're all waiting for is flash that can be read by search engines so we can got absolutely nuts with it. So that means either Adobe sorting something out with flash (not too likely) or google refining the way it reads flash or object elements (possible). Lets hope it happens sometime soon
#24
Posted 28 February 2008 - 11:29 AM
Someone earlier in this thread said that google can index the text in flash now (if its done right). That will definitely be a big change once people start doing it more.
<a href="http://www.jaypan.com" target="_blank">Jaypan</a>
<a href="http://www.dudes-japan.com" target="_blank">Dudes Japan</a>
<a href="http://www.dudes-japan.com" target="_blank">Dudes Japan</a>
#25
Posted 28 February 2008 - 04:02 PM
Great...
And I thank you for explaining the work you did. I did take a quick look at it before but the JavaScript file was too big!
But it turns out it's not that much, I had thought that you wrote the SWFObject.js thing
And I thank you for explaining the work you did. I did take a quick look at it before but the JavaScript file was too big!
But it turns out it's not that much, I had thought that you wrote the SWFObject.js thing
#26
Posted 28 February 2008 - 06:29 PM
No no, I can't take credit for that!!!
<a href="http://www.jaypan.com" target="_blank">Jaypan</a>
<a href="http://www.dudes-japan.com" target="_blank">Dudes Japan</a>
<a href="http://www.dudes-japan.com" target="_blank">Dudes Japan</a>
#27
Posted 26 July 2008 - 03:55 AM
and what they regard most important is:
a) quality of content
ease of navigation, and
c) speed.
a) quality of content
c) speed.


Help
This topic is locked

MultiQuote









