Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Expanding div's upon user interaction
Old 08-31-2009, 06:55 AM Expanding div's upon user interaction
athomas's Avatar
Ultra Talker

Posts: 286
Name: Adam
Location: Eastern Shore, MD, USA
Trades: 0
I've figured out how to embed YouTube videos into a vBulletin installation of mine. How would I go about making a vertically expanding table that expand when the user would click on the "YouTube" text? I'm thinking of starting out out as a size maybe 100px high and 400px wide, and expand to 375px high and 450px tall. I've checked Google, but nothing seemed to come up that I could use.
__________________
Bright Fuse Hosting
Managed Hosting Solutions

Please login or register to view this content. Registration is FREE
athomas is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-31-2009, 08:42 AM Re: Expanding div's upon user interaction
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
The most logical way to do this is with JavaScript, which can be used to manipulate inline CSS styles. If you're totally new at JavaScript, look in that forum, and read some of the stickies for useful links to get you started.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 08-31-2009, 12:51 PM Re: Expanding div's upon user interaction
athomas's Avatar
Ultra Talker

Posts: 286
Name: Adam
Location: Eastern Shore, MD, USA
Trades: 0
Not sure how well that works with vbulletin...
__________________
Bright Fuse Hosting
Managed Hosting Solutions

Please login or register to view this content. Registration is FREE
athomas is offline
Reply With Quote
View Public Profile
 
Old 08-31-2009, 01:02 PM Re: Expanding div's upon user interaction
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
It's just JavaScript, it doesn't matter what you're using to run the website.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 09-01-2009, 10:25 AM Re: Expanding div's upon user interaction
athomas's Avatar
Ultra Talker

Posts: 286
Name: Adam
Location: Eastern Shore, MD, USA
Trades: 0
vB has some limitations though if I understand right.
__________________
Bright Fuse Hosting
Managed Hosting Solutions

Please login or register to view this content. Registration is FREE
athomas is offline
Reply With Quote
View Public Profile
 
Old 09-01-2009, 10:38 AM Re: Expanding div's upon user interaction
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Well there are two choices

Use javascript or open a new page.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-01-2009, 11:31 AM Re: Expanding div's upon user interaction
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Technically, you could have some user interaction in the form of a CSS selected :hover, which would then expand the DIV based on rule, but that won't even work in IE6 and below.

Seeing how you asked for a click, JavaScript really is the only way you can do it, unless you want to mess with Flash, Java, or Silverlight, in which case you will not be able to expand an actual DIV as you asked for, since those are proprietary frameworks with their own sets of rules.

WT is vBulletin, and there is lots of JavaScript here.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.

Last edited by wayfarer07; 09-01-2009 at 11:33 AM..
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 09-01-2009, 06:02 PM Re: Expanding div's upon user interaction
athomas's Avatar
Ultra Talker

Posts: 286
Name: Adam
Location: Eastern Shore, MD, USA
Trades: 0
I want to basically do this kind of thing... see the first post here:

http://www.facepunch.com/showthread.php?t=803852
__________________
Bright Fuse Hosting
Managed Hosting Solutions

Please login or register to view this content. Registration is FREE
athomas is offline
Reply With Quote
View Public Profile
 
Old 09-01-2009, 10:04 PM Re: Expanding div's upon user interaction
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
That example is done in jQuery with the show() method: http://docs.jquery.com/Effects/show
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 09-02-2009, 07:17 AM Re: Expanding div's upon user interaction
athomas's Avatar
Ultra Talker

Posts: 286
Name: Adam
Location: Eastern Shore, MD, USA
Trades: 0
Alright, I guess while I have this example here. I know for a fact this is totally custom, but the rating system they have... the check mark, X, etc... How is that done?
__________________
Bright Fuse Hosting
Managed Hosting Solutions

Please login or register to view this content. Registration is FREE
athomas is offline
Reply With Quote
View Public Profile
 
Old 09-02-2009, 11:15 AM Re: Expanding div's upon user interaction
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
The "how" is not usually what is important, though it can sometimes give an indicator of what steps are required to complete something. What is important is the ability to put the pieces together in a way that makes sense to you. Building a website with an application layer is a lot like building a jigsaw puzzle in which the pieces do not always have a pre-specified location.

So the things that are important to understand is:

1. Client side code that creates behavior exists solely in the browser, and is completely loaded once it starts executing. This is the realm of JavaScript, Flash, CSS, etc.

2. Any response to user input that creates a change to the output of the website (all users are affected), must be programmed from the server. In the case of vBulletin this happens with PHP.

3. Sometimes client side and server side code can communicate via scripted HTTP requests. This is usually called AJAX. This is how requests can be made to a page, and either new information inserted into the database without page refresh, or new information received from the server and updated onto the page without page refresh, etc.

So in order to create a rating system such as this, you need to either:

A. Have a skillset which includes the understanding of client side and server side code, and the ability to solve problems in order to create a working application.

or

B. Find a solution that has been premade, either free or for sale, then customize it with your own images and styles to make it unique.

or

C. You could always hire someone.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to Expanding div's upon user interaction
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.50609 seconds with 12 queries