Embedding - HTML alternative
mwpeters - August 4, 2007 - 14:09
| Project: | SWF Tools |
| Version: | 5.x-1.1 |
| Component: | SWF Tools |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
A very useful application except I haven't been able to get the Alternative HTML function working and am uncertain if its broke or I'm just not understanding (or both).
With Module and SWFObject installed and working....
In Drupal's Configuration.. below the HTML Aternative entry box accessed through the Administration/SWF Tools/Embedding Settings HTML menu
there is a statement that reads:
The ID for for excluding or including this element is: edit-swftools-html-alt - the path is: admin/media/swf/embed
I am assuming that is supposed to inform me how to use the feature. For me this is not clear. Could someone provide an example of how this is called in actual application.
Thanks,
Mark

#1
I have used this once in the following way
<?php$randomimage = "ALTERNATE HTML";
print swf_list($playlist, "950x160", array('transition'=>'random','rotatetime' => '5'), array('html_alt'=>"$randomimage"));
?>
Hope this is helpful!
#2
This isn't really using the HTML alternative function supplied through the Drupal menus and I still don't understand how it is intended to be used (I'm kinda taking wild guesses).
Maybe a different approach would get the result I'm after faster though.
The code you're showing appears to use a different approach to swf movies than the call than the swfobject embedding technique. Not sure that would be wise for me.
It's funny as I can get it swfobject to work fine on its own using the technique of assigning an image to the enclosing block. I haven't gotten that to work within Drupal though. Everything I tried gives me know alternate image or two images.
Hmm, maybe I can use a swf embed var to align the movie over the replacement image in the ?.
The documentation refers to browser window, but might function within the .
#3
Partially my ignorance on how to use I this I guess.
My immediate problems were resolved by switching to direct embedding and creating and applying CSS.
I still don't understand how to use HTML alternative settings though...or how I might use UFO or jQuery...
And I hope to use this more, so additional info would be much appreciated.
#4
I'm confused about the original question. The lastest version of swftools (at
admin/media/swf/embed) doesn't show any "ID for excluding or including..." type option.Perhaps you can check your version, confirm the url and/or show a screenshot.
The two methods for using alternative html are 1) entering it in that admin page or 2) override it case-by-case as demonstrated by andykemp.
#5
I've used this method to display plain text fallback content:
<swf file="flash-movie.swf" width="300" height="200" othervars="html_alt=Plain text alternative content">The advantage over andykemp's method is that you can use a Filtered HTML input format, rather than having to use PHP code.
It works when using UFO to embed the Flash movie - I haven't tried it with any other embedding options though.
#6
edit-swftools-html-altsounds like the identifier for the entry box, so I am guessing you used a WYSIWYG editor. If you use FCK editor you can prevent it from attaching to text input areas by adding these id's to an exclusion list.In terms of using the HTML ALT, you simply add the text that you want substituting, and hit save. Then, if the js can't run on a page you will see the ALT text in its place.
That's all there is to it.
Setting to fixed, but post again if this didn't help.
temp
Automatically closed -- issue fixed for two weeks with no activity.
#7
Automatically closed -- issue fixed for two weeks with no activity.