Javascript: Nifty Nice Titles

March 25, 2005 by  
Filed under CSS, Javascript, Scripts and Coding

I noticed that some websites had these nifty popup divs that came up when I hovered over the titles. I was curious, so I googled, and found this “Nice Titles” article. I decided to test it on my site, and viola, I have nice titles! It was pretty easy to install. I just uploaded the nicetitle.js file to my theme directory. Then add the CSS classes from nicetitle.css into my style.css. Then modified the background image and uploaded that to my images/ directory. Then I added:

<script type="text/javascript" src="nicetitle.js">
</script>

to my header.php file. :) I love transparent PNG! You can see through the div!

While looking at the stylesheet definitions, I also learned something new.

-moz-border-radius: 12px;

This style attribute make the edges of it’s class rounded. Unfortunately, it only works in Mozilla/Firefox. But it’s nifty nevertheless!

Related Posts Plugin for WordPress, Blogger...
  • http://www.adamthedog.com Adam

    Too bad IE has a terrible implementation of PNG…

  • http://www.adamthedog.com Adam

    Too bad IE has a terrible implementation of PNG…

  • http://daynah.net daynah

    Wait til MSIE 7.0 ;) It’ll be release soon!

  • http://daynah.net daynah

    Wait til MSIE 7.0 ;) It’ll be release soon!

  • http://www.jcraveiro.com/v3/ João Craveiro

    “Unfortunately, it only works in Mozilla/Firefox” and is not valid CSS.

    As for transparent PNG, same: no transparency on IE. And I wouldn’t be so optimistic about IE7 solving real problems (transparent PNG, full and correct support for web standards and CSS[2]). Not saying that they wont’ do it, but I’ll only believe when it’s out. ;)

    Nice place you have here :)
    (Just a note: Arzel XT2 theme has no theme switcher—luckily enough, I came here through a post on your Notebok theme, so I always had a way to get to a switchable-away theme ;) )

  • http://daynah.net daynah

    Ahh, thanks for the note. I just fixed the Arzel theme, along with a few others. :)

  • http://daynah.net daynah

    Ahh, thanks for the note. I just fixed the Arzel theme, along with a few others. :)