inherit
133146
0
Nov 16, 2024 15:51:08 GMT -8
Alanna 🥀🖤
3,564
November 2008
alannab
|
Post by Alanna 🥀🖤 on Aug 27, 2013 10:00:01 GMT -8
For my site, Adoxography, I have four images at the top where I would like to place OTMS. I want them to appear as normal images until you hover over them, so then the OTM information appears. I also, just to be clear, don't want them all to appear when one is hovered, I want them to appear separately when hovered over separately. Before:After: This would be lovely! Thank you! Note I have the image codes in the Forum Wrapper template sheet right now.
|
|
inherit
133146
0
Nov 16, 2024 15:51:08 GMT -8
Alanna 🥀🖤
3,564
November 2008
alannab
|
Post by Alanna 🥀🖤 on Aug 29, 2013 7:26:38 GMT -8
Bump!
|
|
inherit
179966
0
Mar 19, 2019 9:23:16 GMT -8
Welshling
Dohtml - v5 templates, advertising & more.
1,150
May 2012
welshling
|
Post by Welshling on Aug 30, 2013 4:49:47 GMT -8
Original thread < this is highly popular right now, and was originally requested by me lol. Hopefully I can try to help you with this. I could try to re-write the coding you'd need for this transition to work, but what are the sizes of your images first please?
|
|
inherit
133146
0
Nov 16, 2024 15:51:08 GMT -8
Alanna 🥀🖤
3,564
November 2008
alannab
|
Post by Alanna 🥀🖤 on Aug 30, 2013 9:03:44 GMT -8
That isn't want I am looking for since my images are completely separate, not one image, and it isn't the banner. It is completely different than what Tumbleweed helped you accomplish.
|
|
inherit
179966
0
Mar 19, 2019 9:23:16 GMT -8
Welshling
Dohtml - v5 templates, advertising & more.
1,150
May 2012
welshling
|
Post by Welshling on Aug 30, 2013 11:26:50 GMT -8
i know, like i said. it would take some re-working.
in theory all you'd have to do would be .fade_content{ position: relative; top: 8px; background-color: white; border: 1px solid black; color: black; font-size: 1em; padding: 18px; width:600px; height:280px; text-align:left;
add one of those for each of your images, then add the corresponding info to your wrappers.
|
|
inherit
133146
0
Nov 16, 2024 15:51:08 GMT -8
Alanna 🥀🖤
3,564
November 2008
alannab
|
Post by Alanna 🥀🖤 on Aug 30, 2013 11:43:53 GMT -8
Um, I did it but it didn't do anything just like my attempt. Plus, I don't even know where to host the information that I want to appear.
|
|
inherit
133146
0
Nov 16, 2024 15:51:08 GMT -8
Alanna 🥀🖤
3,564
November 2008
alannab
|
Post by Alanna 🥀🖤 on Sept 3, 2013 9:37:46 GMT -8
Bump!
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Sept 3, 2013 11:12:45 GMT -8
The images would need to be a background image of a cell containing the hidden content, then a mouseover event would display it. First, put this in your Global Header.. <script type="text/javascript"> <!-- function mouseImageOn(cell) { cell.getElementsByTagName('div')[0].style.display = ''; return; }
function mouseImageOff(cell) { cell.getElementsByTagName('div')[0].style.display = 'none'; return; } // --> </script> Then display your images like this... <div onmouseover="mouseImageOn(this)" onmouseout="mouseImageOff(this)" style="background-image: url(http://img46.imageshack.us/img46/2564/bmt.gif); height: 66px; width: 136px; padding: 10px;"> <div style="height: 66px; width: 136px; background-color: #eeeeee; display: none;;">Hello World</div> </div> The blue text is your image URL and the red numbers are the dimensions of your image minus 20. Repeat with as many images as you wish.
|
|
inherit
133146
0
Nov 16, 2024 15:51:08 GMT -8
Alanna 🥀🖤
3,564
November 2008
alannab
|
Post by Alanna 🥀🖤 on Sept 3, 2013 12:31:26 GMT -8
Thanks, Todge! Two questions though, it seems to only register the hover on the very top of the image, can it register on the entire image? Also it appears really fast, can that be slowed down?
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Sept 3, 2013 13:27:56 GMT -8
Scratch that then, and try this..
Put this in your Global Header..
<style type="text/css"> .infofade { color: transparent; background-color: transarent; transition: background-color 1s, color 1s; -webkit-transition: background-color 1s, color 1s; } .infofade:hover { background-color: #eeeeee; color: #000000; } </style>
And display your images like this...
<div style="background-image: url(http://img46.imageshack.us/img46/2564/bmt.gif); height: 66px; width: 136px; padding: 10px;"> <div class="infofade" style="height: 66px; width: 136px;">Hello World</div> </div>
This will not work in IE8 and earlier, not sure about IE9.
|
|
inherit
133146
0
Nov 16, 2024 15:51:08 GMT -8
Alanna 🥀🖤
3,564
November 2008
alannab
|
Post by Alanna 🥀🖤 on Sept 3, 2013 19:44:52 GMT -8
It's not working for me and I am using Chrome.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Sept 4, 2013 9:31:58 GMT -8
Could you leave a link with the code in place please...
Also, what version of Chrome are you using.. I'm pretty sure the the transition style is not supported by older versions of that browser.
|
|
inherit
133146
0
Nov 16, 2024 15:51:08 GMT -8
Alanna 🥀🖤
3,564
November 2008
alannab
|
Post by Alanna 🥀🖤 on Sept 4, 2013 10:36:55 GMT -8
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Sept 5, 2013 15:29:49 GMT -8
Let's try opacity instead...
Replace the CSS I gave you with this...
<style type="text/css"> .infofade { background-color: #eeeeee; opacity: 0; transition: opacity 1s; -webkit-transition: opacity 1s; } .infofade:hover { opacity: 1; } </style>
and display your images like this...
<div style="background-image: url(http://img46.imageshack.us/img46/2564/bmt.gif); height: 66px; width: 136px; padding: 10px;"> <div class="infofade" style="height: 66px; width: 136px;">Hello World</div> </div>
|
|
inherit
133146
0
Nov 16, 2024 15:51:08 GMT -8
Alanna 🥀🖤
3,564
November 2008
alannab
|
Post by Alanna 🥀🖤 on Sept 5, 2013 19:27:58 GMT -8
Hmm... still isn't working... the very first one you gave me worked lovely minus that it didn't register on the entire image.
|
|