Rank: Advanced Member
Groups: Member
Joined: 4/24/2008(UTC) Posts: 31
|
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: Member, Administration, Moderator Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
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(UTC) Posts: 31
|
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(UTC) Posts: 31
|
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, Administration, Moderator Joined: 9/19/2006(UTC) Posts: 505
Was thanked: 41 time(s) in 41 post(s)
|
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 The Aurigma Development Team
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 4/24/2008(UTC) Posts: 31
|
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.