Computer Science Canada Div help |
Author: | Amailer [ Sun Apr 04, 2004 11:42 pm ] |
Post subject: | Div help |
Hey, Is there a way to make div tags contain some info that i can call when ever i put...like <div id="1"> or something? |
Author: | JayLo [ Mon Apr 05, 2004 4:13 pm ] |
Post subject: | |
you might have to use javascript... actually, explain the thing you want more. i don't really understand. |
Author: | jonos [ Tue Apr 06, 2004 4:24 pm ] |
Post subject: | |
if you're trying to apply text attricutes you'll be best to use css, and calling (i think this is write): <div class="name of style"> |
Author: | JayLo [ Wed Apr 07, 2004 5:18 pm ] | ||
Post subject: | |||
read through this... maybe it's what you need. |
Author: | Amailer [ Wed Apr 07, 2004 5:25 pm ] |
Post subject: | |
err no lol woops forgot about this topic.. what i ment is.. can i stroe information in a div tag and that only if i call it by mydomain#divnumber it displays the info? |
Author: | wtd [ Fri Apr 09, 2004 5:45 pm ] | ||
Post subject: | |||
You can use Javas cript to toggle the visibility of an element in a page. "Element" in this case includes "div". You'd have to use Javascript to parse the query string (everything that follows the question mark) and I'm not quite sure how to do that. Then you'd just do something like:
The actual code may be different than that. |
Author: | PaddyLong [ Sat Apr 10, 2004 11:51 am ] | ||
Post subject: | |||
hmm... maybe something like...
|
Author: | Amailer [ Sat Apr 10, 2004 1:10 pm ] | ||||
Post subject: | |||||
Okay this is what it hsould be..
See how the div is hidden? can it bs so that javascript can change hte style of the visibility to visiable? edit.
|
Author: | PaddyLong [ Sun Apr 11, 2004 3:04 pm ] | ||
Post subject: | |||
here... this one works file.html doesn't show it file.html#divnumber shows it
|
Author: | Amailer [ Sun Apr 11, 2004 3:51 pm ] |
Post subject: | |
i don't think it does.. well not for me atleast :S oh wlel |
Author: | PaddyLong [ Sun Apr 11, 2004 8:08 pm ] |
Post subject: | |
if you're using mozilla there's a chance it won't work... you'll most likely need to add in some extra code to deal with cross-browser compatibility |
Author: | Kamikagushi [ Thu Jun 10, 2004 6:43 pm ] | ||
Post subject: | |||
~are u sure that div can be coded as hidden~ ~~anyways~this is the code i use for my site on div~
|