Recent Widgets


Register for DashboardWidgets

Recent Forums Posts

Partners


iCompositions

MacDesktops.net

RSS Showcase
RSS Comments
RSS Forums

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. Posted in: Widget Design

widget buttons

Author Message
losssoul



Joined: 26 Nov 2005
Posts: 1

Posted: Sat Nov 26, 2005 - 10:16 am    Post subject: widget buttons Reply with quote

hey i need help!!..not only have i made my first widget i have decided that i now want to create 2 buttons 1 to link to my ftp site and the 2nd one to link to my website Iam new to html and javascript and to get this far is a big break through for me so I hope someone understands..but here is the problem i do not know the coding or script for this to take place and time is running out for me to finish this project for my college work..any takers? Lips Locked
View user's profile Send private message Send e-mail Widgets
purvisa



Joined: 21 Jul 2005
Posts: 182
Location: Kirkland, WA

Posted: Sat Nov 26, 2005 - 9:49 pm    Post subject: Reply with quote

Place an onclick event handler in the <img> tag and the corresponding code in your Javascript file.

In the HTML file:
Code:
<img src="myImage.png" id="myCssId" onclick="myFunction()">


In the Javascript:
Code:
function myFunction()
{
    /*
    The code to be executed when clicked
    */
}


You also need to be clear about setting the proper flags in your info.plist file (see Apple's programming guide for more information on that).
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger Widgets
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

 
Powered by phpBB © 2001, 2002 phpBB Group