Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- var title;
- var plot;
- var image;
- $(document).ready(function() {
- $('#search_results').hide();
- $("#search_results").mouseenter(function() {
- $("#search_results").html('<br /><img src="'+image+'" width="110" height="150" /><br />'+plot);
- }).mouseleave(function() {
- $("#search_results").html('<br /><a href="#">'+title+'</a>');
- });
- });
- function searchBox(text)
- {
- $.get('ajax/data.php?type=1&search_text='+text, function(data)
- {
- spliter = data.split("<>");
- title = spliter[0];
- image = spliter[1];
- plot = spliter[2];
- $('#search_results').hide();
- $("#search_results").html('<br /><a href="#">'+title+'</a>');
- $('#search_results').fadeIn("fast");
- });
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement