udox/jquery-swfswap
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a simple js (jQuery based) plugin to swap div content (of img if you like) with external html (or img) file. e.g. if you want to swap flash content for iOS devices. How to: ------------------ Copy <script type="text/javascript" src="path/to/jquery.min.js"></script> <script type="text/javascript" src="path/to/jquery-swfswap.js"></script> into <head></head> of your html file. Then ad below <script type="text/javascript" language="javascript"> $(document).ready(function(){ $('#DivID_that_you_want_to_swap').contentSwap('path to file that should be in #DivID', 'this can be img alt attribute'); }); </script> That's it!
About
A jquery plugin to swap out a selector with alternate content if the UA matches an iOS device
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published