|
|
Rank: Advanced Member Groups: Member
Joined: 4/24/2008 Posts: 30 Points: 90
|
Is it possible to add CSS styles to text strings like the "Drop Files Here" text in the drag and drop upload box?
I'm using the localization features to change the text, but wasn't able to add CSS style info to the string as it was just interpreted as plain text.
I tried this: iu.addParam("DropFilesHereText", "<h2>Drop files here</h2>");
|
|
 Rank: Advanced Member Groups: Administration
, Member
Joined: 7/28/2003 Posts: 1,185 Points: -358 Location: WA, US
|
Hey, There is no way to change the style of this text label, however you can replace it with image. Please see DropFilesHereImageFormat property for more info.
Best regards, Fedor Skvortsov
|
|
Rank: Advanced Member Groups: Member
Joined: 4/24/2008 Posts: 30 Points: 90
|
I can't seem to get this to work. Here's how I'm trying to configure this: Code: iu.addParam("DropFilesHereImageFormat", "");
// Set upload background image getImageUploader("ImageUploader1").setDropFilesHereImageFormat("Url=http://www.mysite.com/images/background_uploadbox.gif;Width=750;Height=250;Position=Center;"); value = getImageUploader("ImageUploader1").getDropFilesHereImageFormat();
Are there other settings that could override this background image? When I have these lines in my configuration, the upload box disappears.
|
|
Rank: Advanced Member Groups: Member
Joined: 4/24/2008 Posts: 30 Points: 90
|
I just realized that the "getImageUploader" part of this code probably needs to be called within an event listener. Am I correct? If so, which listener does it need to go into?
Maybe that's my problem.
|
|
Rank: Advanced Member Groups: Member
Joined: 9/19/2006 Posts: 351 Points: 174
|
Hi, You can set DropFilesHereImageFormat through addParam too: Code:iu.addParam(“DropFilesHereImageFormat”, "Url=http://www.mysite.com/images/background_uploadbox.gif;Width=750;Height=250;Position=Center;");
Best regards, Eugene Kosmin. Aurigma Development Team
|
|
Rank: Advanced Member Groups: Member
Joined: 4/24/2008 Posts: 30 Points: 90
|
Perfect! That worked.
|
|
|
Guest |