Sponsors
November 28, 2014, 03:23:47 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: angle not working  (Read 6505 times)
mv64
Newbie
*
Posts: 2


View Profile Email



« on: March 03, 2008, 11:42:35 AM »

I cannot figure correct sintax for angle........

is it working? or am I doing something wrong.........




<div id="header">
   Hello World
</div>
<script type="text/javascript">

window.onload = function(){   

 var img1 = text2png.replace('header', {angle: 10, background: null, opacity: 34, shadow_color: '#FF0000', shadow_distance: 15, shadow_angle: 345});

  }

</script>
Logged

Your Ad Here
Help us provide faster and better service. Donate Today!

Make payments with PayPal
admin
text2PNG Administrator
Administrator
Newbie
*****
Posts: 24


View Profile WWW Email



« Reply #1 on: March 03, 2008, 02:17:45 PM »

Hi mv64

We've tested your code and found the bug. You can try to refresh your page (click CTRL+Shift and refresh to clear the cached files) to run the new script.

Angles and transparent images don't mix right now (an issue with the GD lib and rotating transparent images) so the script will try to located the background color if none is given. In your case (transparent) the script will loop through the parent elements until it finds a background color, if none it'll use white.

The loop didn't stop at the body tag, so we fixed the issue and forced it to stop at the body tag (if no background color is found)

Let me know if you have any other questions.
Logged

Making better text one word a time!

Your Ad Here
Help us provide faster and better service. Donate Today!

Make payments with PayPal
mv64
Newbie
*
Posts: 2


View Profile Email



« Reply #2 on: March 03, 2008, 03:09:49 PM »

The answer is useless, if you fixed something, please be kind to share it with code or show an example.


Also your script is calling save_url.php from your script...........

Are you tracking the script use?  Please disclose this kind of behaviour.......

This is not acceptable!!!
Logged

Your Ad Here
Help us provide faster and better service. Donate Today!

Make payments with PayPal
admin
text2PNG Administrator
Administrator
Newbie
*****
Posts: 24


View Profile WWW Email



« Reply #3 on: March 03, 2008, 05:01:21 PM »

Hi mv64

You can view the complete source code at http://www.text2png.com/text_script_full.js

If you saved the script to your server (not using our server), please update the file. You don't need to update your code at all.

To find out how the script works, please visit http://www.text2png.com/performance.php (save_url.php is the second http request)

The save_url.php saves the js files refrence file (for your page). Since JS is not cross domain, we have to create a JS file for each page that display any images.
« Last Edit: March 03, 2008, 08:51:47 PM by admin » Logged

Making better text one word a time!

Your Ad Here
Help us provide faster and better service. Donate Today!

Make payments with PayPal
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC