sandy1028 Posted August 6, 2007 Share Posted August 6, 2007 Hi, Is there any way to change the size of background image which is included for tooltip dynamically. Quote Link to comment https://forums.phpfreaks.com/topic/63501-change-size-of-image/ Share on other sites More sharing options...
ToonMariner Posted August 6, 2007 Share Posted August 6, 2007 Yes but its a bit of a ####-on so why bother.... you would have to use an inline style attribute for each tooltip and dynamically rezie you image each time (using imagecreateform....())... Quote Link to comment https://forums.phpfreaks.com/topic/63501-change-size-of-image/#findComment-316570 Share on other sites More sharing options...
sandy1028 Posted August 6, 2007 Author Share Posted August 6, 2007 Hi, Depending on the textual information can the image be decreased and increased. The image should be decreased and increased all the sides Quote Link to comment https://forums.phpfreaks.com/topic/63501-change-size-of-image/#findComment-316588 Share on other sites More sharing options...
ToonMariner Posted August 6, 2007 Share Posted August 6, 2007 if you can grab the height and width and padding of the element with javascript then you could use ajax to generate your background on the fly and return the correct string to place inside the style attribute.... Quote Link to comment https://forums.phpfreaks.com/topic/63501-change-size-of-image/#findComment-316626 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.