> var img_size="20%"
> Now, when I run the script, it stops with: img_size is not defined
You can't use double-quotes inside the onclick="..." handler because
the quotes are already used to surround the entire handler
definition. Use single quotes instead:
var img_size='20%';
... and, to add the "prompt for size":
var img_size=prompt('Enter image size','20%');
if (!img_size) return; /* cancelled by user */
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---