Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Css issue to open a javascript link 1

Status
Not open for further replies.

geneboss

Technical User
Jul 28, 2010
21
US
Hi all,
I'm a newbie in programing and have an issue here that hope someone can help me resolve.
I have an external link which will post a logo that opens a chat window into my website:

<div id="externallink" class="chat">
<script type="text/javascript" src="</div>

I want this logo to be positioned in the location with the following css properties in my web page:

.chat {

border:none;

padding:0;

margin:0;

text-indentlicking lips999em;

overflow:hidden;

height:164px;

width:51px;

position:fixed;

left:0;

top:190px;

z-index:1000;

display:block;

}

I tried it with the css code above, but could not get it to work. It only shows the button but no action is taken when click to open the window! Your suggestions are greatly appreciated.

Regards
 
Sounds like a JavaScript issue. Does it work without the css?

Greg
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard
 
I'm trying to understand his myself over at the JS forum:

thread216-1613990

What I have gathered, is he has a JS script which I have yet to be able to see, that generates a chatbox.



----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
Thank you for your reply guys,
Yes it works without the css.

I know the link works because when I load the page, the automatic help window scrolls down from the top and from there I can open the chat box. But when I want to manually open the window by clicking on the corresponding button, the chat window won't open.
Here's the script:

<div id="division" class="chat">
<script type="text/javascript" src="</div>
 
OK here's the javascript:

<div id="craftysyntax">
<script type="text/javascript" src="
</div>

if you try this and put anywhere into your website, it works.
What I want is for the button to appear as described in the css file.

I hope this clarifies the situation.
 
The button is remote. If you use the code it appears on you webpage.
 
sorry, it was typo on my part. here's the correct css code:
it must have been changed by itself when I pasted it.

.chat {
border:none;
padding:0;
margin:0;
text-indent: -9999em;
overflow:hidden;
height:164px;
width:51px;
position:fixed;
left:0;
top:190px;
z-index:1000;
display:block;
}

there's no invalid css code.
 
I know the css code is correct because if you add a test background:transparent url(../images/online6.png) no-repeat 0 0;

it will show the image at it's location.

the css recognizes the remote image and it is visible when loading the page. The problem is the clicking part on the remote button that does not work and won't open the chat window.

Now..if you don't use the css and only use the remote script and place it anywhere on your page..it works perfectly...

The issue is how to combine these two and make it work.

 
Thank you Audiopro for trying to help me.
Vacunita solved the issue.
I had to remove text-indent. and it did it.

Regards
geneboss
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top