473,805 Members | 2,042 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

x.style.borderS tyle = 'dotted'; doesn't work

Hi,

I've in my web pages an affectation to this property but it's doesn't
work (same for all the others properties I'm trying to update):

here is the complete function I call on mouseover :

<script language="javas cript">
function highLigth (x) {
x.style.borderW idth = '5px';
x.style.borderS tyle = 'dotted';
x.style.backgro undColor ='red';
x.style.borderT op = '5px solid #BCC3F8';
x.style.borderB ottom = '5px solid #BCC3F8';
}
function highLigthOut (x) {
x.style.backgro undColor = 'white';
}

</script>

and the result on my webpage :
http://avant-garde.no-ip.biz/cgi-bin...dz.cgi?lang=FR (slow dev
server)

May 4 '06 #1
3 4600
wrote on 04 mei 2006 in comp.lang.javas cript:
Hi,

I've in my web pages an affectation to this property but it's doesn't
work (same for all the others properties I'm trying to update):
Works fine here. But pleace specify what "doesn't work" means.
Give error texts and what you want it to do.

However:
here is the complete function I call on mouseover :

<script language="javas cript">
<script type='text/javascript'> "language" is deprecated
function highLigth (x) {
highLight is English
x.style.borderW idth = '5px';
x.style.borderS tyle = 'dotted';
Do not specify constant styles here, but use a css declaration
x.style.backgro undColor ='red';
x.style.borderT op = '5px solid #BCC3F8';
x.style.borderB ottom = '5px solid #BCC3F8';
}
function highLigthOut (x) {
x.style.backgro undColor = 'white';
}

</script>

and the result on my webpage :
http://avant-garde.no-ip.biz/cgi-bin...dz.cgi?lang=FR (slow dev
server)


Try this file:

=============== ========

<script type='text/javascript'>
function highLightOver(x ) {
x.style.borderS tyle = 'dotted';
x.style.borderC olor ='red';
}
function highLightOut(x) {
x.style.borderS tyle = 'dashed';
x.style.borderC olor ='green';
}
</script>

<div
onmouseover='hi ghLightOver(thi s)'
onmouseout='hig hLightOut(this) '
style='border-width:5px;width :300px;'>
xxxxxxxxxxxxxxx xxxxxx
</div>

=============== ========

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
May 4 '06 #2
al********@gmai l.com said on 05/05/2006 7:31 AM AEST:
Hi,

I've in my web pages an affectation to this property but it's doesn't
work (same for all the others properties I'm trying to update):

here is the complete function I call on mouseover :

<script language="javas cript">
The language attribute is deprecated, type is required.

<script type="text/javascript">

function highLigth (x) {
I would have expected "highLight" , maybe you like that spelling.

x.style.borderW idth = '5px';
x.style.borderS tyle = 'dotted';
x.style.backgro undColor ='red';
x.style.borderT op = '5px solid #BCC3F8';
x.style.borderB ottom = '5px solid #BCC3F8';
}
function highLigthOut (x) {
x.style.backgro undColor = 'white';
}

</script>
Your issue is not the script, it may be CSS. A CSS group (like
news:comp.infos ystems.www.authoring.stylesheets) can help with that.

Here is a test case based on your code that works in Firefox:

<script type="text/javascript">

function highLigth (x) {
x.style.borderW idth = '5px';
x.style.borderS tyle = 'dotted';
x.style.backgro undColor ='red';
x.style.borderT op = '5px solid #BCC3F8';
x.style.borderB ottom = '5px solid #BCC3F8';
}
function highLigthOut (x) {
x.style.backgro undColor = 'white';
}

</script>

<div style="width:10 0px; height: 100px;"
onmouseover="hi ghLigth(this);"
onmouseout="hig hLigthOut(this) ;"blah</div>


--
Rob
Group FAQ: <URL:http://www.jibbering.c om/FAQ>
May 5 '06 #3
ASM
RobG a écrit :
al********@gmai l.com said on 05/05/2006 7:31 AM AEST:

[...]
function highLigth (x) {


I would have expected "highLight" , maybe you like that spelling.


I prefer : "supraLux" :-)
--
Stephane Moriaux et son [moins] vieux Mac
May 5 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1927
by: Dynamo | last post by:
Hi again, Having had a little experience of HTML and style classes but only a limited knowledge of PHP perhaps somebody can tell me the pros and cons of the following. Surely if I write something in PHP like $style = "<b><i><font size='1'>" $endstyle ="</b></i></font>"
7
13992
by: mr_burns | last post by:
hi, in html, how do i create a pop up description box for text. i want, in the same way that when you write the image alt tag and the user rolls the cursor over the image a pop up box appears, but for text. any help? cheers burnsy
2
2141
by: Jukka K. Korpela | last post by:
(Discussion started in c.i.w.a.h. under Subject "image alt style pop up for text", now changed to discussing the use of a title="..." attribute to create a popup info text, and how to make it obvious to users that there _is_ some info available.) Neal <neal413@yahoo.com> wrote: > On Fri, 6 Aug 2004 16:09:39 +0100, Alan J. Flavell > <flavell@ph.gla.ac.uk> wrote: >
55
6924
by: James A. Donald | last post by:
In a book, a footnote is presented at the bottom of the page, in a slightly smaller type. converting a book to html, pages are bottomless, so we can put the footnote in a separate link, or create a footnote div class that floats right. Links are probably what the author would have used had he been writing in html, but divs that float right are closer to the spirit of the original work, and enables the footnote to be seen in context,...
4
1310
by: terrorix | last post by:
I have create Style class instance and set up properties like this: Style st = new Style(); st.BackColor = Color.Black; st.BorderColor = Color.White; st.BorderStyle = BorderStyle.Solid; st.BorderWidth = new Unit(1, UnitType.Pixel); string styleStr = string.format("this.style.cssText='{0}', st.ToString());
8
6703
by: JT | last post by:
Hi, I have done a fair amount of style editing inline in ASP. I'm now using VS 2005 with a standard web project (not Web Application Project). This is my first foray into CSS in a style sheet and also my first true attempt at using master pages. I tried setting up a style sheet with a simple setting to float an image to the right and it had no effect on the image. Then, I tried putting the style code in my ASPX file as such,
1
15333
by: Armin Gajda | last post by:
Hi, I have the following problem: An input field get a border assigned by a style class (e.g. 2px solid red). When the field gets the focus, we set the border to green. element.style.border = "2px solid green"; When the field looses the focus, the border should change back to red.
8
13540
by: Amit | last post by:
I have a master page and a content page but the stylesheet isnt getting applied like how it looks in visual studio design view. The master page is defined like this: <%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
8225
by: Randy | last post by:
I'm trying to loop through all of the textboxes on my form and change some of their properties. I'm stuck on changing the border style to none. Here is my code: Dim c As Control For Each c In Me.Controls If TypeOf c Is TextBox Then c.Enabled = False c.BorderStyle = None End If
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10609
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9185
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7646
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6876
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5542
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5677
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3845
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.