CSS & JS in profiles Thread poster: Mirko Mainardi
|
Hi everyone. Has someone here been able to successfully implement CSS/JS code in their "About me" sections? In the site FAQ, I read: 19.1 - Why might some ProZ.com profiles include user-supplied dynamic content (javascript)? Some users have chosen to customize their ProZ.com profiles with dynamic content such as instant messaging tools, clocks, hit counters, etc. This dynamic content may be implemented in a scripting language such as javascript, which... See more Hi everyone. Has someone here been able to successfully implement CSS/JS code in their "About me" sections? In the site FAQ, I read: 19.1 - Why might some ProZ.com profiles include user-supplied dynamic content (javascript)? Some users have chosen to customize their ProZ.com profiles with dynamic content such as instant messaging tools, clocks, hit counters, etc. This dynamic content may be implemented in a scripting language such as javascript, which can be run by the viewer's web browser. 19.8 - Can I include CSS in my profile? CSS styles can be defined inline in your profile, inside of HTML "style" tags. External stylesheets are filtered unless the user viewer has allowed dynamic content. http://www.proz.com/faq/10126#10126 And, on the forum: http://www.proz.com/forum/prozcom_translator_coop/142348-changes_made_to_the_way_java_is_handled_in_prozcom_profiles.html In fact, my profile does show a (not so reassuring, truth be told...) "Dynamic content (javascript) enabled in this profile" message with a yellow warning sign, which asks visitors whether to enable JS or not... So, based on that, both CSS and JS are supposed to be supported in our profiles, however, I have so far been unable to use them in the 'About me' section, while (at least) some support seems to be enabled in customs tabs, for instance (which I used to add a localized version of a tab, since localization of custom tabs is not natively supported...). Am I missing something? P.S. I also opened a support ticket about this, but I haven't received an answer to my original question. ▲ Collapse | | | Gerard de Noord France Local time: 13:58 Member (2003) English to Dutch + ... Why do you want to know? | Sep 27, 2017 |
Hi Mirko, I'd never use JavaScript on this website because of the ugly warning vistitors get. Normally the link to CSS resides in the head element of the html file. Our profiles on ProZ only give us access to the body elemen... See more Hi Mirko, I'd never use JavaScript on this website because of the ugly warning vistitors get. Normally the link to CSS resides in the head element of the html file. Our profiles on ProZ only give us access to the body element. At https://stackoverflow.com/questions/11833325/css-hack-adding-css-in-the-body-of-a-website people discuss ways to use CSS anyhow, including placing a head element within the body element. But CSS is only an efficient way to apply styles on multiple pages. You could apply your styles in a less efficient way, since it's only one profile page. Cheers, Gerard ▲ Collapse | | | Mirko Mainardi Italy Local time: 13:58 Member English to Italian TOPIC STARTER
Hi Gerard. Thanks for your reply Why do I want to know? Why not? Specifically, I wanted to use a few lines of code (I tried both JS and CSS) to show a popup when clicking or hovering over a picture, instead of using plain HTML to open a new browser window. But it could be anything else, really... Also, since both forum posts and FAQs (as previously quoted) say this should be possible, I'd like to know how to do that... Gerard de Noord wrote: I'd never use JavaScript on this website because of the ugly warning vistitors get. Yeah, I know. In fact that's a con... Normally the link to CSS resides in the head element of the html file. Our profiles on ProZ only give us access to the body element. At https://stackoverflow.com/questions/11833325/css-hack-adding-css-in-the-body-of-a-website people discuss ways to use CSS anyhow, including placing a head element within the body element. But CSS is only an efficient way to apply styles on multiple pages. You could apply your styles in a less efficient way, since it's only one profile page. Well, I'm not a coder, so going out of my way to circumvent limitations in "creative" ways (as suggested in the link you provided) is not really an option for me. I just thought it would've been possible to use some CSS and JavaScript, as advertised. If I'm told I can use JS and CSS, but then it doesn't work, I'd expect to be told how to make it work, or why it doesn't work (while the "instructions" say otherwise), also considering that, as I previously wrote, there seems to be a difference between the behavior of code entered in "About me" and in custom tabs. At any rate, I didn't find a guide anywhere on the site about his, and my question to support (which also included the simple code I wanted to use) went unanswered... I find the whole thing "a bit less than satisfactory", to use a slight euphemism. | | | To report site rules violations or get help, contact a site moderator: You can also contact site staff by submitting a support request » CSS & JS in profiles Trados Studio 2022 Freelance | The leading translation software used by over 270,000 translators.
Designed with your feedback in mind, Trados Studio 2022 delivers an unrivalled, powerful desktop
and cloud solution, empowering you to work in the most efficient and cost-effective way.
More info » |
| CafeTran Espresso | You've never met a CAT tool this clever!
Translate faster & easier, using a sophisticated CAT tool built by a translator / developer.
Accept jobs from clients who use Trados, MemoQ, Wordfast & major CAT tools.
Download and start using CafeTran Espresso -- for free
Buy now! » |
|
| | | | X Sign in to your ProZ.com account... | | | | | |