Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Possible future mod - Message Preview
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

robbear7
Junior Member

106 Posts

Posted - 09 July 2002 :  09:19:45  Show Profile  Visit robbear7's Homepage  Send robbear7 an AOL message  Send robbear7 an ICQ Message  Send robbear7 a Yahoo! Message
Hello, I am working on a modification to my forum. What I am trying to acheive is a DHTML mouseover preview of a topic message when a user mouseover's the message topic. I can get it to work, the only problem is the HTML output is adding some white space rendering the mouseover message display useless, for example, in forum.asp I have added the following code:
<a href="topic.asp?<%= ArchiveLink %>TOPIC_ID=<% =Topic_ID %>" onmouseover="return overlib('<% =ChkString(rs("T_MESSAGE"),"display") %>');" onmouseout="return nd();"><% =ChkString(left(rs("T_SUBJECT"), 50),"display") %></a> 

This is the code that normally calls the Message Topic and the link. Notice the 'onmoueover' and 'onmouseout' in bold. This is what I have added, I also added:
strSql = strSql & strActivePrefix & "TOPICS.T_MESSAGE, " 

The html output comes out looking like this:
<a href="topic.asp?TOPIC_ID=12" onmouseover="return overlib('Just testing the message previews<br>This should be a line break all in one line.<br><br>and another couple.
*blank line here*
');" onmouseout="return nd();"
>Testing Message Previews</a>

Notice the white space? In order for the script to properly work, the code should output like this:
<a href="topic.asp?TOPIC_ID=12" onmouseover="return overlib('Just testing the message previews<br>This should be a line break all in one line.<br><br>and another couple.');" onmouseout="return nd();">Testing Message Previews</a> 

I am at a loss as to how to get rid of this white space after the insertion of the message? Any clues?
Sorry if this is not the right place to post this question. It just seemed the most appropriate place, as this very well could be a future mod I would implement.
Thanx for any help or suggestions!
My board can be found at http://www.robbear7.com/designer/forum/It is under a lot of development and transitioning to CSS, so don't mind the color inconsitency and stupid test postings.

-Robbie

robbear7
Junior Member

106 Posts

Posted - 09 July 2002 :  09:28:29  Show Profile  Visit robbear7's Homepage  Send robbear7 an AOL message  Send robbear7 an ICQ Message  Send robbear7 a Yahoo! Message
Real quickly, I figure this add on would work best with html in posts, so my settings are currently set to allow HTML in posts with forum code disabled.

-Robbie

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 09 July 2002 :  12:11:10  Show Profile
I did something similar awhile back.

see here:

http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=23313#106567

and here:

http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=23313#106583
Go to Top of Page

robbear7
Junior Member

106 Posts

Posted - 10 July 2002 :  08:49:27  Show Profile  Visit robbear7's Homepage  Send robbear7 an AOL message  Send robbear7 an ICQ Message  Send robbear7 a Yahoo! Message
Hey thanx! Your previous posting matched exactly what I was looking for. Same script even. Even funnier, the individual you were helping made the same changes I did, which caused the same problems.

Anyways, if anyone wants to see the results, take a look at http://www.robbear7.com/designer/forum/forum.asp?FORUM_ID=1
Once again, don't mind the stupid test postings, and make sure to mouseover the topic links.

-Robbie

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07