![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
So Fucking Banned
Industry Role:
Join Date: Jan 2011
Posts: 770
|
Is there a plugin that shows a thumb preview when you mouse over a post title like tool tips
Anyone know of a plugin for wordpress that when you mouse hover a post title it shows a preview thumb? either a thumb of the featured image or the thumb of the first image of the blog post?
I have installed the skinnytip tools tip plugin and have been trying to edit my content.php to get this to work but it's giving me problems. I see websites that have thumbnails pop up when you mouse over the gallery title link. Just wondering if there was an easy way to do tis? Thank! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 | |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
|
Quote:
Edit: thinking on it, you can do it with just pure CSS
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
So Fucking Banned
Industry Role:
Join Date: Jan 2011
Posts: 770
|
Thanks for the reply. I guess I have to do more messing around with the code.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,339
|
you could grab the image via the post thumbnail, and do this via jquery like harvey said.
ill do some code up later if i have time and you havent got it yet. best to do the html/css on a standalone static page then implement it into wp
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
So Fucking Banned
Industry Role:
Join Date: Sep 2010
Posts: 3,405
|
Go to a Fusker site | right click | view source.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
(>^_^)b
Industry Role:
Join Date: Dec 2011
Posts: 7,223
|
http://floatboxjs.com/demo
Scroll down to Popup Thumbnails and Enhanced Tooltips ![]() Edit: I read what you're looking for wrong.. ![]()
__________________
![]() I've referred over $1.7mil in spending this past year, you should join in. ![]() ![]() I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years.. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,339
|
You can do something like this.
css Code:
.hoverthumb { position: absolute; border: 1px solid #ccc; background: #333; padding: 5px; display: none; color: #fff; } Code:
jQuery(document).ready(function($) { xOffset = 10; yOffset = 30; $("a.thumbnail").hover(function(e) { this.t = this.title; this.title = ""; var c = (this.t != "") ? "<br/>" + this.t : ""; $("body").append("<p class='hoverthumb'><img src='" + this.rel + "' />" + c + "</p>"); $(".hoverthumb").css("top", (e.pageY - xOffset) + "px").css("left", (e.pageX + yOffset) + "px").fadeIn("fast"); }, function() { $(".hoverthumb").remove(); }); $("a.thumbnail").mousemove(function(e) { $(".hoverthumb").css("top", (e.pageY - xOffset) + "px").css("left", (e.pageX + yOffset) + "px"); }); }); Code:
<?php function custom_hover_scripts() { wp_enqueue_script('jquery'); wp_enqueue_script('jquery_hover', get_stylesheet_directory_uri() . '/js/hover.js'); wp_enqueue_style('jquery_hover', get_stylesheet_directory_uri() . '/css/hover.css'); } add_action('wp_enqueue_scripts','custom_hover_scripts'); function hover_thumbnail($atts,$content) { global $post; $thumbnail = wp_get_attachment_url(get_post_thumbnail_id($post->ID)); $content = '<a href="'. get_permalink($post->ID) . '" class="thumbnail" rel="'. $thumbnail . '">'.get_the_title().'</a>'; return $content; } add_shortcode('hoverthumb', 'hover_thumbnail'); https://dl.dropboxusercontent.com/u/33687580/hover.zip
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
So Fucking Banned
Industry Role:
Join Date: Jan 2011
Posts: 770
|
Thanks Guys.....I got it working pretty much what I wanted. Just gotta mess with the thumb size. Thanks!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,339
|
Quote:
Code:
function get_hover_permalink($postid) { $thumbnail = wp_get_attachment_url(get_post_thumbnail_id($postid)); if($thumbnail) $content = '<a href="'. get_permalink($postid).'" title="'. get_the_title($postid) . '" class="thumbnail" rel="'. $thumbnail .'">'.get_the_title($postid).'</a>'; else $content = '<a href="'. get_permalink($postid).'" title="Permalink to '. get_the_title($postid) . '" rel="bookmark">'.get_the_title($postid).'</a>'; return $content; } ![]() like so.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Registered User
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
|
Fris, you are without a doubt the most helpful dude on any message board.
|
![]() |
![]() ![]() ![]() ![]() ![]() |