Skip to content

A jquery plugin to swap out a selector with alternate content if the UA matches an iOS device

Notifications You must be signed in to change notification settings

udox/jquery-swfswap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

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

No packages published