Dynamic Page Titles
Posted on October 05, 2006
I like the dynamic page titles on this flash site. Very simple, but I can't remember seeing it before. When the user moves to different sections of the site, flash calls a simple javascript that changes the title element in the html document.
function setTitle(title)
{
document.title = title;
}
Animated page titles: the new status bar ticker?
Comments (4)
ss said
Just out of curiosity - what is the flash call? I tried this on a button and no such luck:
on (release) {
getURL("JavaScript:setTitle('something')");
}
Sorry… i am not very quick…
Posted by: ss at December 21, 2006 04:40 AM .
bsn said
@ss: try writing "javascript" in lower-case. (BTW: It's always a good idea to say what browser / flash version you are using when something isn't working.)
Here's an example page. I used the DOM this time for the JavaScript, although the old skool version worked perfectly well (at least in Safari/Firefox).
Posted by: bsn at December 21, 2006 08:43 AM .
Post a comment
Remember Me?
(you may use HTML tags for style)