bacon
Title: Head Admin
Posts: 9,754
|
Post by bacon on Mar 7, 2006 16:59:58 GMT -5
I know I've seen this code a long time ago... does anyone know where to find a code where if you move the mouse over the banner editable text in a little box appears?
|
|
DDL
Title: Moderator
Posts: 3,639
|
Post by DDL on Mar 8, 2006 17:38:00 GMT -5
I have something like that coded, except it is at school...I'll upload it tomorrow. To make sure, is this what you want?: You hover over a specific image, and an input box (like where I'm typing this post on the post page) appears with a predefined size and location. If so, it's taken care of.
|
|
bacon
Title: Head Admin
Posts: 9,754
|
Post by bacon on Mar 8, 2006 17:43:53 GMT -5
Alright, thanks!
|
|
DDL
Title: Moderator
Posts: 3,639
|
Post by DDL on Mar 9, 2006 7:35:12 GMT -5
To make sure, is this what you want?: You hover over a specific image, and an input box (like where I'm typing this post on the post page) appears with a predefined size and location. Is that what you want?
|
|
bacon
Title: Head Admin
Posts: 9,754
|
Post by bacon on Mar 9, 2006 7:59:20 GMT -5
Yes.
|
|
DDL
Title: Moderator
Posts: 3,639
|
Post by DDL on Mar 9, 2006 14:56:53 GMT -5
<script type="text/javascript"> function showHide(str){ document.getElementById("display").innerHTML=str } </script>
<div id="display" style="position:absolute; left:700px; top:100px; width:169px; height:20px; z-index:1; background-color: transparent; border:1px solid"></div>
<img src="IMAGELINKHERE" onmouseover="showHide('TEXTHERE')" />
I am trying to fix it to where it specifically targets the banner, but that works for a normal image. Also, you can mess with the left/top/width/height to get it wherever you want it.
~DDL
|
|
DDL
Title: Moderator
Posts: 3,639
|
Post by DDL on Mar 9, 2006 20:17:42 GMT -5
Still working on it...setAttribute isn't working like it is supposed to...
|
|
DDL
Title: Moderator
Posts: 3,639
|
Post by DDL on Mar 10, 2006 14:35:56 GMT -5
<script type="text/javascript"> // Text On Rollover (Banner) by DDL
var findimg = document.getElementsByTagName("img")[0]; findimg.setAttribute("onmouseover", "text('TEXTHERE')");
function text(str){ document.getElementById("display").innerHTML=str; } </script>
<div id="display" style="position:absolute; left:700px; top:100px; width:169px; height:20px; z-index:1; background-color: transparent; border:1px solid"></div>
Edit the stuff in red.
|
|
bacon
Title: Head Admin
Posts: 9,754
|
Post by bacon on Mar 10, 2006 16:51:28 GMT -5
Thank you.
|
|
DDL
Title: Moderator
Posts: 3,639
|
Post by DDL on Mar 11, 2006 11:45:03 GMT -5
Where are you going to use it?
|
|