/    Sign up×
Community /Pin to ProfileBookmark

JavaScript Question

okay heres my site (just look at the source for the code):
[url]http://39webdesign.streamlinenettrial.co.uk/Untitled-1.html[/url]
Is there a way to add some code to that code to make it change between the small and the big smoothly like this one here:
[url]http://39webdesign.streamlinenettrial.co.uk/test.html[/url]
But with just editing the original code

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@KDLAAug 03.2009 — I'm pretty sure you could achieve that with jquery.

Examples: http://docs.jquery.com/Tutorials:Live_Examples_of_jQuery
Copy linkTweet thisAlerts:
@b3nj4m1nAug 03.2009 — If you use jQuery, you can do stuff like that very easily
[CODE]$("#ButtonId").click(function(){$("#TableCellID").animate({width: "200%"},1500 );});[/CODE]
Substitute "200%" with any % or px value.

1500 is time in ms.

If you are going to do a lot of animation, it's definately worth to go for jQuery, or a similar library.
Copy linkTweet thisAlerts:
@JMRKERAug 03.2009 — All the code is already available at: http://39webdesign.streamlinenettrial.co.uk/test.html

Just do a 'view source'
×

Success!

Help @alandalf 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.4,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...