Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RP = {
- setup: function() {
- // when click on any <a> within element id="movies":
- $('#movies a').click(RP.getMovieInfo);
- // add invisible 'div' to end of page for popup window:
- $('<div id="movieInfo"></div>').
- hide().
- appendTo($('body'));
- },
- getMovieInfo: function() {
- // code to be filled in later
- return(false); // prevent default link action
- },
- }
- $(RP.setup);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement