/    Sign up×
Community /Pin to ProfileBookmark

blooming flowers

hi,
looking for a script, where flowers blooming on different places on the webpage?

HELP!

Sunny

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@AdamGundryMar 20.2005 — It sounds to me like you are looking for an animated GIF image, rather than JavaScript.

Adam
Copy linkTweet thisAlerts:
@sunnyCBauthorMar 20.2005 — no Adam, it should be a script, cause the flowers should blooming on different places like left upper corner, middle, right, middle ... I have no idea to discribe it better. I wish I could show you something similar ...

I agree with you, the flowers itself should be an blooming animation, but then I need a script where they show up on different places.

Sunny
Copy linkTweet thisAlerts:
@AdamGundryMar 20.2005 — Do you mean randomly? If you just want to position them across the page, you can do them with CSS, but perhaps something like this JavaScript is more what you are looking for (you'll need to insert the correct filename in place of the italics):

<script type="text/javascript">
function addFlower()
{
flowerImg = document.createElement('img');
with (flowerImg)
{
setAttribute('src', '[i]logo.gif[/i]');
with (style)
{
position = 'absolute';
top = Math.round(Math.random()*480) + 'px';
left = Math.round(Math.random()*640) + 'px';
}
}
document.body.appendChild(flowerImg);

<i> </i>setTimeout('addFlower()', 1000);
}

window.onload = addFlower;
&lt;/script&gt;

Adam
Copy linkTweet thisAlerts:
@sunnyCBauthorMar 20.2005 — Thank you, Adam for your help, I will check it out tomorrow and I will show you the result.

CU

Sunny
×

Success!

Help @sunnyCB spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...