Is this java or css?

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Likeatalltree

Thread Starter
Joined
Jun 29, 2006
Messages
305
I want to do something similar to this guys page, http://www.electricheat.org, where you can click on a link to one of his works and it appears in that open area. I couldn't imagine how to do it in css so im guessing its java. I want to do this to keep my load time low when people visit my page instead of tons of images loading at once.

thanks
 
Joined
Mar 23, 2008
Messages
103
Java is a scripting language developed by Sun Microsystems which is useful for making small visual applications and games in a 3D environment.
Javascript was developed by W3C and is a scripting language used on websites for various things, none of which similar to Java.

Javascript is the only way to do what you say you want your website to look like. Most likely, you'll want to have a table which spans the entire page if you'd like your links on the side. The table would have 1 <tr> and 2 <td>'s. One for the side links and one for the content.
The Javascript will take an ID of an object (in this case, the <td> element) and change the contents with "document.getElementById("id").innerHTML='something'".

If you need more help, feel free to ask.


UPDATE: This is how you would get that effect with javascript. Iframes are messy and some browsers don't support them.
 

Likeatalltree

Thread Starter
Joined
Jun 29, 2006
Messages
305
Eeek. Sorry about saying java instead of javascript, i was in a hurry lol. But I'm trying to make my page purely css and html for my web design class. I know nothing of javascript so even if i wanted to, I probably could not do what he did. I'm thinkin I might do a hover effect instead, similar to the way he did it where you hover and it displays to the right like in a separate div but it sounds like a lot of coding.
 
Joined
Mar 23, 2008
Messages
103
You can't dynamically change content with CSS... unless you use HTML frames. But that isn't truly dynamic.
 
Joined
Apr 30, 2005
Messages
3,012
Java is a scripting language developed by Sun Microsystems which is useful for making small visual applications and games in a 3D environment.
Javascript was developed by W3C and is a scripting language used on websites for various things, none of which similar to Java.

Javascript is the only way to do what you say you want your website to look like. Most likely, you'll want to have a table which spans the entire page if you'd like your links on the side. The table would have 1 <tr> and 2 <td>'s. One for the side links and one for the content.
The Javascript will take an ID of an object (in this case, the <td> element) and change the contents with "document.getElementById("id").innerHTML='something'".

If you need more help, feel free to ask.


UPDATE: This is how you would get that effect with javascript. Iframes are messy and some browsers don't support them.
JavaScript was created by NETSCAPE, not W3C
 

Likeatalltree

Thread Starter
Joined
Jun 29, 2006
Messages
305
Alright, I guess I'm limited to links to the images instead. I'm sure he won't mind that I'm not a genius at web coding yet =] I know enough to make a basic yet graphically appealing web page.
 
Joined
Nov 8, 2007
Messages
1,689
I would bet that you could create something similar with either, or a compilation of both.
 
Joined
Oct 25, 2007
Messages
551
You can't dynamically change content with CSS... unless you use HTML frames. But that isn't truly dynamic.
Not completely true :)

Check out this tutorial on drop-down menus. You could use the same idea - making a number of divs with display: none and then another hover state where it does show. I'm not sure how this would work with all the divs positioned in the same place, but I'm sure if you used absolute positioning it would look OK.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top