brunocbreis Posted March 1, 2010 Share Posted March 1, 2010 I want to make a div with hidden overflow that contains an image and two arrows (next and previous).When I click the 'next' arrow, it should take me to ANOTHER image, in the same div (this image wasn't appearing before due to the hidden overflow).I think you can do this with javascript, but the site I'm coding for doesn't allow that.Anyway, this is my code, I just don't get what's wrong. Can't I use anchors within the same divs with hidden overflow? <style>#div {width: 300px;height: 300px;OVERFLOW: HIDDEN;}</style><div id="div"><a name="previous"><img src=url><br><img src="arrowleft"><a href="#next"><img src="arrowright"></a><br><br><br><a name="next"><img src=url><br><a href="#previous"><img src="arrowleft"></a><img src="arrowright"></div> Link to comment Share on other sites More sharing options...
thescientist Posted March 2, 2010 Share Posted March 2, 2010 is that supposed to be pseudo code? Link to comment Share on other sites More sharing options...
brunocbreis Posted March 2, 2010 Author Share Posted March 2, 2010 is that supposed to be pseudo code?Yes, sorry. I mean, I think so. Link to comment Share on other sites More sharing options...
thescientist Posted March 2, 2010 Share Posted March 2, 2010 In other words, is that the actual code you are using to write your website? Link to comment Share on other sites More sharing options...
brunocbreis Posted March 2, 2010 Author Share Posted March 2, 2010 In other words, is that the actual code you are using to write your website?Oh, no.I didn't write the URLs and stuff.Also, there are more than 2 images and therefore their names are different (not previous and next) Link to comment Share on other sites More sharing options...
thescientist Posted March 2, 2010 Share Posted March 2, 2010 well, how are we supposed to help you if you're not giving us the code? Please provide a link or the code that your'e actually using. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.