• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization use SM nicetitle JS from keywords?

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #128 (Sunrise or Sunset), ShootingStar.

The next Dgrin Challenge DSS #129 (Silhouette Revisited ) is open for entries through May 27th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Old Oct-17-2005, 01:47 PM
#1
rainforest1155 is online now rainforest1155 OP
with a Heroes touch
rainforest1155's Avatar
use SM nicetitle JS from keywords?
Got the idea from Gary's page in his bio and found this pretty neat, but I couldn't steal it properly.
I looked at the code and figured that he basicly inserted a nicetitle parameter into the <a>-tag like this:
Code:
<A href="mailto:not@me.com" nicetitle="Send an eMail to Sebastian">Sebastian</A>
It doesn't work - so I looked further at his CSS and other code, but couldn't find anything. I even tried copying a keyword from the keywordlist with some class-tags defining it as a keyword to my bio - didn't work either.

Any ideas?

Thanks,
Sebastian
__________________
Sebastian
SmugMug Support Hero

look on the bright side
http://www.SebastianHosche.com
Old Oct-17-2005, 01:59 PM
#2
Mike Lane is offline Mike Lane
I � Unicode
Mike Lane's Avatar
Quote:
Originally Posted by rainforest1155
Got the idea from Gary's page in his bio and found this pretty neat, but I couldn't steal it properly.
I looked at the code and figured that he basicly inserted a nicetitle parameter into the <a>-tag like this:
Code:
<A href="mailto:not@me.com" nicetitle="Send an eMail to Sebastian">Sebastian</A>
It doesn't work - so I looked further at his CSS and other code, but couldn't find anything. I even tried copying a keyword from the keywordlist with some class-tags defining it as a keyword to my bio - didn't work either.

Any ideas?

Thanks,
Sebastian
Simply use title="whatever" and it will be converted to the nicetitle.
__________________
Y'all don't want to hear me, you just want to dance.

http://photos.mikelanestudios.com/
Old Oct-17-2005, 02:17 PM
#3
rainforest1155 is online now rainforest1155 OP
with a Heroes touch
rainforest1155's Avatar
Quote:
Originally Posted by Mike Lane
Simply use title="whatever" and it will be converted to the nicetitle.
Thanks Mike - that did it!

Sebastian
__________________
Sebastian
SmugMug Support Hero

look on the bright side
http://www.SebastianHosche.com
Old Oct-17-2005, 03:00 PM
#4
garyjwood is offline garyjwood
Big grins
garyjwood's Avatar
Quote:
Originally Posted by rainforest1155
Thanks Mike - that did it!

Sebastian
Exactly. I just used the standard XHTML "title" attribute. Like this, except of course with angle brackets instead of parentheses:

(a href="mailto:gary@garyjwood.com" title="Send e-mail to Gary")Gary(/a)

Looks nice with FireFox, looks ordinary with IE.
__________________
- Gary
Galleries: http://garyjwood.smugmug.com
Photo of the Day: http://blog.garyjwood.com
Location-enabled and interactive!
Old Oct-17-2005, 03:10 PM
#5
Andy is offline Andy
panasonikon
Andy's Avatar
Quote:
Originally Posted by garyjwood
Exactly. I just used the standard XHTML "title" attribute. Like this, except of course with angle brackets instead of parentheses:

(a href="mailto:gary@garyjwood.com" title="Send e-mail to Gary")Gary(/a)

Looks nice with FireFox, looks ordinary with IE.
gary - hey, this is easy enough

are there ways to customize the floaty-baloon-ey thing-y? (color, shape, etc.)

ps: it's a grey rectangle in safari, and a nice oval racetrack shape in firefox.
__________________
Andy
Moon River PhotographyWorkshopsGoogle+FacebookTwitter
Old Oct-17-2005, 03:32 PM
#6
jfriend is offline jfriend
Scripting dude-volunteer
See nicetitle.css
Quote:
Originally Posted by andy
gary - hey, this is easy enough

are there ways to customize the floaty-baloon-ey thing-y? (color, shape, etc.)

ps: it's a grey rectangle in safari, and a nice oval racetrack shape in firefox.
Check out the contents of nicetitle.css. Presumably, you can override/add to the styles in there. Here's what I see in nicetitle.css:

Code:
 div.nicetitle {
 	position: absolute;
 	padding: 5px;
 	top: 0px;
 	left: 0px;
 	color: #ffffff;
 	width: 25em;
 	font-weight: bold;
 	background: #666666;
 	border: 1px white solid;
 	font-family: Verdana, Tahoma, Helvetica, sans-serif;
 	font-size: 11px;
 	z-index: 10;
 	
 	/* Mozilla proprietary */
 	-moz-border-radius: 12px;
 }
 div.nicetitle p {
 	margin: 0; padding: 0 3px;
 }
 div.nicetitle p.destination {
 	display: none;
 	font-size: 9px;
 	text-align: left;
 	padding-top: 3px;
 }
--John
Old Oct-17-2005, 03:34 PM
#7
garyjwood is offline garyjwood
Big grins
garyjwood's Avatar
Quote:
Originally Posted by andy
gary - hey, this is easy enough

are there ways to customize the floaty-baloon-ey thing-y? (color, shape, etc.)

ps: it's a grey rectangle in safari, and a nice oval racetrack shape in firefox.
Andy,

AFAIK, the colour and shape of the pop-up info windows (Microsoft sometimes calls them "tooltips") are provided by the browser itself.
__________________
- Gary
Galleries: http://garyjwood.smugmug.com
Photo of the Day: http://blog.garyjwood.com
Location-enabled and interactive!
Old Oct-17-2005, 03:38 PM
#8
garyjwood is offline garyjwood
Big grins
garyjwood's Avatar
Quote:
Originally Posted by jfriend
Check out the contents of nicetitle.css. Presumably, you can override/add to the styles in there. Here's what I see in nicetitle.css:

Code:
  
  ...snip... 
     
   	/* Mozilla proprietary */
   	-moz-border-radius: 12px;
 
  ...snip...
--John
Thanks, John. Guess I replied to Andy too soon

And don't you hate it when you see things like "Mozilla proprietary"
__________________
- Gary
Galleries: http://garyjwood.smugmug.com
Photo of the Day: http://blog.garyjwood.com
Location-enabled and interactive!
Old Oct-17-2005, 04:19 PM
#9
Mike Lane is offline Mike Lane
I � Unicode
Mike Lane's Avatar
You can make that tooltips thing look however you want it to look by using the same selectors as in the nicetitle.css file. The proprietary mozilla part is something that will be supported in CSS 3 (whenver that comes out).

Mike
__________________
Y'all don't want to hear me, you just want to dance.

http://photos.mikelanestudios.com/
Old Oct-18-2005, 11:10 AM
#10
Andy is offline Andy
panasonikon
Andy's Avatar
ok so i changed the color, etc of the floaty-thingie. cool.
can i change the shape
__________________
Andy
Moon River PhotographyWorkshopsGoogle+FacebookTwitter
Old Oct-18-2005, 12:07 PM
#11
Mike Lane is offline Mike Lane
I � Unicode
Mike Lane's Avatar
Quote:
Originally Posted by andy
ok so i changed the color, etc of the floaty-thingie. cool.
can i change the shape
Yup. Just set

-moz-border-radius:0;

to get a rectangle in firefox and alter the font size, padding, etc. to change the shape.

You could even set a background image if you wanted to be super clever. That may pose a problem if you have a long title attribute.
__________________
Y'all don't want to hear me, you just want to dance.

http://photos.mikelanestudios.com/
Old Oct-18-2005, 12:36 PM
#12
Andy is offline Andy
panasonikon
Andy's Avatar
Quote:
Originally Posted by Mike Lane
Yup. Just set

-moz-border-radius:0;

to get a rectangle in firefox and alter the font size, padding, etc. to change the shape.

You could even set a background image if you wanted to be super clever. That may pose a problem if you have a long title attribute.
i'm hip to the radius thing. but could i make it another shape, if i wished, and if so, how?
__________________
Andy
Moon River PhotographyWorkshopsGoogle+FacebookTwitter
Old Oct-18-2005, 01:34 PM
#13
Mike Lane is offline Mike Lane
I � Unicode
Mike Lane's Avatar
Quote:
Originally Posted by andy
i'm hip to the radius thing. but could i make it another shape, if i wished, and if so, how?
There's no easy way to do it. If you were able to limit the amount of text I suppose you could use an image as your background. Right off the bat I can't think of anything that would look all that great though. What are you thinking that you want to do?
__________________
Y'all don't want to hear me, you just want to dance.

http://photos.mikelanestudios.com/
Old Oct-18-2005, 01:56 PM
#14
Andy is offline Andy
panasonikon
Andy's Avatar
Quote:
Originally Posted by Mike Lane
What are you thinking that you want to do?
i'll let you know when you tell me
__________________
Andy
Moon River PhotographyWorkshopsGoogle+FacebookTwitter
Old Oct-18-2005, 02:41 PM
#15
Mike Lane is offline Mike Lane
I � Unicode
Mike Lane's Avatar
Quote:
Originally Posted by andy
i'll let you know when you tell me
Here's the basis behind them. http://www.kryogenix.org/code/browser/nicetitle/
__________________
Y'all don't want to hear me, you just want to dance.

http://photos.mikelanestudios.com/
Old Oct-18-2005, 02:58 PM
#16
pat.kane is offline pat.kane
Major grins
Quote:
Originally Posted by andy
i'll let you know when you tell me
ROTFL. That's pretty funny.
Old Oct-18-2005, 03:09 PM
#17
Andy is offline Andy
panasonikon
Andy's Avatar
Quote:
Originally Posted by pat.kane
ROTFL. That's pretty funny.

pat - it either went right over the captain's head (quite possible) or he's just ignoring me
__________________
Andy
Moon River PhotographyWorkshopsGoogle+FacebookTwitter
Tell The World!  

Thread Tools
Display Modes

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump