hiding/showing image & text
- Started
- Last post
- 35 Responses
- Baskerville0
haha, it's not finished yet. I've only build the structure and menu system. Once I'm happy with that I'll fill it up with content and then it will be ready. Probably within the next 2 weeks.
It's my portfolio site which I've been meaning to update for about 2 or 3 years!
- UndoUndo0
Failing all of it, pay Undo to do it ;)
moth
(Mar 1 07, 05:42)a very good idea that :D
- rson0
link?
- Baskerville0
asycronous javascript and xml....sounds sexy eh
do it in js and the search engines can read it, do it in flash and they cant. both as easy as each other depending on yr knowledge / experience
failing that do a 1 pg folio!!
UndoUndo
(Mar 1 07, 05:40)I hate flash, will never use it as long as I live. Too many bad memories!
I've actually got the site working pretty much as I want. I've adapted a nice collapsable menu system with subfolders and I've got those links working across my frameset to the content frame, which now contains images which are viewed one at a time using javascript. Simple.
- rson0
One pagers!!!!!
Failing all of it, pay Undo to do it ;)
moth
(Mar 1 07, 05:42)recap
- moth0
Failing all of it, pay Undo to do it ;)
- UndoUndo0
asycronous javascript and xml....sounds sexy eh
do it in js and the search engines can read it, do it in flash and they cant. both as easy as each other depending on yr knowledge / experience
failing that do a 1 pg folio!!
- rson0
Not at all. He needs something done quick. JS /ajax is stable but would take more time as opposed to AS.
- moth0
Using JS to manipulate CSS, isn't a hack.
It's the beginnings of AJAX... Which is probably going to become the norm.
I still hate JS though.
- Baskerville0
ooh, coder fight!!
- rson0
Than you'll just have to suffer rson. What the fuck do you think you're doing surfing the web with JS turned off?!
It's like walking around with 1 eye shut.
Furthermore, you're more likely to encounter a person without Flash installed than you are a person without JS turned on.
moth
(Mar 1 07, 05:17)Good point i do not know why i had it turned off but whatever point takin. I guess what I am saying , for me , it would be more stable to write it in AS then hack OS JS. Dont get me wrong im not dissing JS. big fan
- moth0
I would watch out for JS. What if some, like me has it turned off? Why not use AS?
rson
(Mar 1 07, 04:37)Than you'll just have to suffer rson. What the fuck do you think you're doing surfing the web with JS turned off?!
It's like walking around with 1 eye shut.
Furthermore, you're more likely to encounter a person without Flash installed than you are a person without JS turned on.
- moth0
Undo Moth's site does not show and hide div's it just loads a new page....
Dancer
(Mar 1 07, 02:48)Yes I had to change because it was buggy and I needed the site up quick.
- UndoUndo0
actionscript - but that has its own problems!
- Dancer0
AS?
- rson0
I would watch out for JS. What if some, like me has it turned off? Why not use AS?
- Baskerville0
thanks for the heads up. Conveniently all my images will be the same size since it make image formatting easier. That's how it works on my current site. I've played around with it a bit and added images and text to each div, keeping the bg colour white. I've also extended the size of the divs so they site behind the text/image well.
Like layers in photoshop?Is working well now, and I've applied my css etc.
I'm really enjoying all this web stuff. I takes a while to get some things but when they work it's really satisfying. Sorry if I keep pestering you guys!
Hoping to get my new site up within the next few weeks, once I iron out a few details and add all the conent!
- Dancer0
Cheers Undo.
Baskerville, be careful with the z-index. Although it uses no Javascript it does not "show and Hide" merely change the level of the div. If you had images all the same size then fine.
I think JS is a better way to go logically but it's up to you
- UndoUndo0
no problem, with that code use the onclick event handler for your button/header div and pass through the id of the div containing the content you want to display