|
Web design and Programming Discuss website creation and other programming topics. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
JavaScript image
ok was looking to turn this js into where you can click the whole image and it opens in a new window and roll over the whole image and it displays the text. But i have no real experince with js could some1 help me out (this is the example for w3schools
PHP Code:
__________________
Quote:
|
#2
|
||
|
The code is mostly correct. 2 small issues causing the problem though.
You need a semicolon after this line to show that it is the end of the expression/statement. PHP Code:
PHP Code:
PHP Code:
Leading to the corrected code: PHP Code:
You may also want to consider keeping the text in an array and keeping it inside the function, considering that you are not using the function for multiple purposes. For example: PHP Code:
PHP Code:
__________________
Last edited by Capers; 05-27-2007 at 09:33 AM. |
#3
|
|||
|
Thanks Capers works perfectly!
__________________
Quote:
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Javascript BBCode insertion | Lakie | Web design and Programming | 5 | 01-05-2007 03:27 AM |
JavaScript Help! | Webviper2006 | Web design and Programming | 9 | 02-05-2006 12:56 AM |
javascript | King | Web design and Programming | 3 | 01-03-2005 11:35 AM |
New Image | BlackMass | Sigs and Graphics | 13 | 11-15-2004 10:58 AM |
Help with javascript | Acid | Web design and Programming | 5 | 10-28-2003 07:30 AM |