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 Development

Resize Image from dropdown

Author Message
biglair



Joined: 23 Apr 2005
Posts: 5

Posted: Sat Apr 23, 2005 - 8:29 pm    Post subject: Resize Image from dropdown Reply with quote

I am creating a widget that gives a user seveal images to choose. I am having problem resizing the image after it has been selected from a drop down. The images are coming from different sites and need to scaled down.

Here is my drop down:

<select name="selectRadar" size="1" onChange="location.href=this.options[selectedIndex].value">
<option>Choose Radar</option>
<option value="http://www.news10.net/weather/sradar.jpg">Radar</option>
</select>

That image I am pulling is very large and I need it to be around 300 by 200.

Thanks,
View user's profile Send private message Send e-mail Widgets
iremembercliford



Joined: 27 Mar 2005
Posts: 32

Posted: Sat Apr 23, 2005 - 11:00 pm    Post subject: Reply with quote

Without seeing your HTML, I am not sure what the problem is. Why can't you just resize directly with the HTML
<img height="200" weight="300" src=....>
View user's profile Send private message Send e-mail Widgets
biglair



Joined: 23 Apr 2005
Posts: 5

Posted: Sat Apr 23, 2005 - 11:59 pm    Post subject: Reply with quote

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>
<title>Radar Menu</title>


</head>

<body leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">
<table width="352" border="0" cellspacing="0" cellpadding="0" background="Images/desktop.jpg" height="240">
<tr>
<td align="center" valign="middle"><select name="selectRadar" size="1" onChange="location.href=this.options[selectedIndex].value">
<option>Choose Radar</option>
<option value="http://www.news10.net/weather/sradar.jpg">Radar</option>
</select>
</td>
</tr>
</table>
</body>

</html>
View user's profile Send private message Send e-mail Widgets
biglair



Joined: 23 Apr 2005
Posts: 5

Posted: Sun Apr 24, 2005 - 5:29 am    Post subject: Reply with quote

I got this to work...thanks.
View user's profile Send private message Send e-mail 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