javascript

Cufon: changing font-weight on hover

I am using Cufon to embed tags with the 'Print Clearly' typeface. On the hover state of the tag I would like the text to change to bold, how can I do this with Cufon? <script src="js/jquery-1.4.2.js" type="text/javascript"></script> <script src="js/cufon-yui.js" type="text/javascript"></script> <script src="js/print-clearly_400.font...

Google maps points to the correct location but does not show the location name.

I create a Google map for my site using the API. It points to the correct location but the problem is it does not show the location name. See: http://myrtlebeachsweeps.com/ticket/angelos-steak-and-pasta . Zoom-in. Notice that the map shows the name of Cancun Lagoon Golf but it does not show the name of Angelo's. This direct Google ma...

How can I make a Playstation 3 Game card?

Hi there... I want to make a ps3 card like this one: http://gamercards.exophase.com/2516.png using the data from the ps3 network site, this one http://us.playstation.com/publictrophy/index.htm?onlinename=bruno_shady but I want to make something different, something that show only the name of the person and the games that the person ...

Don't know how to make script with preloaded images

Can someone look over this and tell me what I have to do to get the images to show up? <head> <SCRIPT LANGUAGE="JavaScript"> <!-- //Begin function changeImage(filename) { mainimage.src = filename; } // End --> </script> </head> <body> <p> <a href="javascript:changeImage('image-viewer/image1.jpg')">I...

Stop jQuery animations

My JavaScript is as follows: $.get("/<page>.php", "userid='.$userid.'&"+status, function(data){ $("#status").show("fast").html(data).delay(4000).hide("fast"); }); I have many links on a page that will load this jQuery AJAX and display the status in a div correctly. It all works fine, except if a user click many of the link...

Java Script Problem - Centering an Image

I have an image viewer using a js module called "cloud zoom." It works wonderfully and seems to be just what I need. Except! It messes up the viewer when I try and center the IMG in a div. Here is my unfortunate example. Roll over the image and you will see that the mouse and the view don't match up. It works fine if I were to remove t...

How stop an HTML form from submitting if user is not signed in, but allow submit if user is signed in?

In my app, a user must be signed in to submit form info. After a user clicks on the form submit button, my jQuery checks if a user is signed in. If not signed in, then an error message pops up, requesting sign in/up. I can now successfully stop the default action (submit). However, how do I also allow the default action if the user ...

how to disable mouseover event on onclick ?

I'm using mouseover and mouseout event wherein which will change the images on mouseover and mouseout And when users click on link, can we disable mouseout event, so that that respective function will not be called ? <td><a href="javascript:void(0)" id="LikeId" onmouseover="like(1);" onmouseout="like(2);"><span id="greenimg" style="dis...

Sandboxing JavaScript output?

Hi, Is it possible to sandbox JavaScript output? What I mean is that whenever a developer is doing document.write, X.appendChild(), x.replaceChild(), x.innerHTML, etc. he would not be able to directly affect the DOM -- and instead the update would have to go through my framework. ...

JavaScript Avatar

Hello, I'm trying to create a javascript avatar. E.G with Head Items, body items etc... I have a PHP script that queries the database and retrieves the current items the avatar/user is wearing, it's response is in a serialised array. The item/avatar images are in E.G: http://blahblahblahBlah.com/graphic/itemtype/id.png Thank you in adv...

Having jQuery insert defined content

Hi everyone, I have a navigation menu in xHTML with the following typical structure: <ul id="nav1"> <li><a href="#">item1</a></li> </ul> I have this jQuery script to add a space and a slash after every link: $('#nav1 li,#nav2 li').append('&nbsp;/'); However, after the last link (aka the last li), I want to only add a space (aka &n...

Default initialization of variables in action forms.

Hi Guys, i have made a from like : MyForm extend ActionForm{ list<Menu> MenuList=null; MyForm(){ super(); setMenuList(); //initialize menu list } } Menu object has string desciption and boolean variable for selected or not. In web page, i am iterating the list to display all the menus and checkbox over those boole...

JavaScript avatar with items question

I'm trying to create a javascript avatar. E.G with Head Items, body items etc... I have a PHP script that queries the database and retrieves the current items the avatar/user is wearing, it's response is in a serialised array. The item/avatar images are in E.G: http://blahblahblahBlah.com/graphic/itemtype/id.png How would I create an "i...

get mp3 song duration in javascript

hello, is there a way to get mp3 song duration in JavaScript? Thanks. ...

Using Prototype JS on pages that use jQuery

I am revamping a website that now uses jQuery. The process is more than half way done but for the time being I need to setup a demo as soon as possible. For this I will copy existing ASP code as-is and these particular pages require prototype plugins. Converting all prototype plugins to jQuery is in the todo list. So I am wodering if the...

Using AJAX call to a PHP page issue.

Hello All and Greetings, I'm working on an assignment which determines the client timezone offset , passes the same to a PHP script, which contains a code to fetch the timezone identifier for that client's area. Now for determining timezone offset, I have used JavaScript. However, I need some way to pass this to PHP. I used AJAX call ...

Jquery Form validation not working

Hi, I'm having problems with my jquery form validation and now it refuses to work. Follow the links to pastebin for the HTML and Jquery. Its also not showing and hiding the the table rows depending on what type of publication was selected. Here is my html and my javascript Please note that the javascript is the file application that my h...

__defineSetter__ replacement for firefox 3.5.x and up

It seems that __defineSetter__ no longer works in firefox latest version. It works in Chrome. do you know Any replacement function that does the same thing and also works in other browsers like IE, Opera,Safari? ...

how i can write css for individual page of my project who developed in MVC 3

i thing i put something wrong here sorry for that if you confused. i want to put Javascript or Css in the Head of my page [who is render in browser]. when i try to put them then i found that he inside of Body not inside of head tag. i know that i can easily put in head if i not inherit them from master page. but how i can put on my ...

How to modify this javascript code to only expand the hidden text

Hi friends, I want to expand hidden text on a webpage and after some (re)search on google i came across the following code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <title>Test</title> <script type="text/javas...