|
Post by rhondairv on Apr 26, 2010 12:40:09 GMT -8
I am wondering if there is a way to put an image (like my logo) in the background of posts. Like you have (but yours is text) only mine would always be there.
A faded image so it does not interfer with reading the post.
|
|
|
Post by Wormopolis on Apr 26, 2010 14:32:27 GMT -8
have you checked my database for "background image in posts"?
|
|
|
Post by rhondairv on Apr 26, 2010 16:00:18 GMT -8
Nope, thought i came up with an original idea. LOL
I found yours. Is there a way for it to just be there with out typing in the pbg code each time and it fades the image some so it doesn't interfer with the reading of the posts?
|
|
|
Post by Wormopolis on Apr 26, 2010 21:15:35 GMT -8
cant really apply a fading effect to a background image. that code lets anyone put whatever image they want behind their posts. if you got an image and did the fading effect before saving it, that would work.
if you are looking for the same image in every post, PBS has a code in its database for that one.
|
|
|
Post by rhondairv on Apr 27, 2010 7:31:32 GMT -8
Yes, i was looking for the same image in all posts already there before they posted. I will see if i can find it in PBS. Thanks again.
|
|
|
Post by Wormopolis on Apr 27, 2010 7:38:59 GMT -8
oh wait, you mean in the textarea where they type in the post?
|
|
|
Post by rhondairv on Apr 27, 2010 11:30:38 GMT -8
yes, a lot like you have already here but yours is text and when we click to type it goes away. I would prefer mine to stay.
|
|
|
Post by Wormopolis on Apr 27, 2010 14:49:46 GMT -8
do you have a URL to the faded image?
|
|
|
Post by rhondairv on Apr 27, 2010 16:13:38 GMT -8
|
|
|
Post by Wormopolis on Apr 27, 2010 19:49:00 GMT -8
you will want to fade that some more if you want text easily visible over the top of it. also do you want it just at the top of the textarea or to be repeated vertically down?
|
|
|
Post by rhondairv on Apr 27, 2010 22:22:41 GMT -8
|
|
|
Post by Wormopolis on Apr 28, 2010 8:23:38 GMT -8
<script type="text/javascript"> <!-- // Image in posting text areas.. var bgImg="http://i153.photobucket.com/albums/s240/EmoteCrazy/1-1-2.png";
if(document.postForm && !location.href.match(/action=pmsend/)) {
for(ta = document.getElementsByTagName('textarea'), t=0; t<ta.length; t++) { if(ta[t].name == 'message' && ta[t].value.length == 0) { ta[t].style.backgroundImage="url("+bgImg+")"; ta[t].style.backgroundPosition="center center"; ta[t].style.backgroundRepeat="no-repeat"; break; } } } if (location.href.match(/thread=/) && location.href.match(/action=display/)) { for (tds=document.getElementsByTagName('td'), t=0; t<tds.length; t++) { if (tds[t].width=='80%' && tds[t].vAlign=='top' && tds[t].getElementsByTagName('table')[0]) { ww=tds[t].getElementsByTagName('table')[0].rows[1].cells[0]; ww.style.height='100%'; ww.style.backgroundImage="url("+bgImg+")"; ww.style.backgroundPosition="center center"; ww.style.backgroundRepeat="no-repeat"; } } } // --> </script>
|
|
|
Post by Wormopolis on Apr 28, 2010 8:26:13 GMT -8
Hit the reply button.
|
|
|
Post by rhondairv on Apr 28, 2010 13:55:49 GMT -8
The image does not stay once posted. Is that possible?
|
|
|
Post by Wormopolis on Apr 28, 2010 21:55:24 GMT -8
as in a background of a posted post?
|
|