开发者

website page losing title

开发者 https://www.devze.com 2022-12-31 22:06 出处:网络
i am going mad with this problem now - if u goto http://talll.com and 开发者_StackOverflowstart clicking around on the menu items like news, economics etc., u will find that the page title says \"unde

i am going mad with this problem now - if u goto http://talll.com and 开发者_StackOverflowstart clicking around on the menu items like news, economics etc., u will find that the page title says "undefined" - i just want to set the page title to some value thats all - HELPPPPPP!!!


Line 124 in script.js:

document.title = $("input[type='hidden'][name='title']").attr("value");

Apparently $("input[type='hidden'][name='title']").attr("value") is undefined.


The problem is on line 159:

 $("a.ctip").cluetip({
document.title='Talll.com - Daily Links for Finance Professionals'; 

You are passing attributes to that function, you cant just throw the document.title="blah" in there. You need to add the document.title to an event handler function called when the user clicks on the link.

0

精彩评论

暂无评论...
验证码 换一张
取 消