473,320 Members | 2,189 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Inserting a line break

I am using a javascript to display a slide show of images.

Each image is called with this in the body:-

<select name="slide" onchange="change();">
<optionvalue="pictures/picture01.jpg">
Text under the picture</option>
<optionvalue="pictures/picture02.jpg">
Text under the picture</option>
</select>
When I have a lot of text under the picture I want to spread it over
two lines but if I insert <brit is ignored

Is there any other way to force a line break within the <option...?

--
Joe Boy
Jun 27 '08 #1
4 2347
Joe Boy wrote:
I am using a javascript to display a slide show of images.

Each image is called with this in the body:-

<select name="slide" onchange="change();">
<optionvalue="pictures/picture01.jpg">
Text under the picture</option>
<optionvalue="pictures/picture02.jpg">
Text under the picture</option>
</select>
When I have a lot of text under the picture I want to spread it over
two lines but if I insert <brit is ignored

Is there any other way to force a line break within the <option...?
'<optionvalue=' ?????? Do you mean '<option value=' ?
Jun 27 '08 #2
On Tue, 13 May 2008 21:35:48 -0400, sheldonlg <sheldonlgwrote:
>Joe Boy wrote:
>I am using a javascript to display a slide show of images.

Each image is called with this in the body:-

<select name="slide" onchange="change();">
<optionvalue="pictures/picture01.jpg">
Text under the picture</option>
<optionvalue="pictures/picture02.jpg">
Text under the picture</option>
</select>
When I have a lot of text under the picture I want to spread it over
two lines but if I insert <brit is ignored

Is there any other way to force a line break within the <option...?

'<optionvalue=' ?????? Do you mean '<option value=' ?
Ooopppps - yes <option value=

I copied and pasted from the source code in the web site which has the
space so I don't know where it vanished to :-(

--
Joe Boy
Jun 27 '08 #3
On May 14, 11:25 am, Joe Boy <joe...@invalid.invalidwrote:
I am using a javascript to display a slide show of images.

Each image is called with this in the body:-

<select name="slide" onchange="change();">
<optionvalue="pictures/picture01.jpg">
Text under the picture</option>
<optionvalue="pictures/picture02.jpg">
Text under the picture</option>
</select>

When I have a lot of text under the picture I want to spread it over
two lines but if I insert <brit is ignored

Is there any other way to force a line break within the <option...?
No.

BTW, this is an HTML question, not javascript, so try:

news:comp.infosystems.www.authoring.html

or just read:

<URL:
http://groups.google.com.au/group/co...617b6a7580723b
>

--
Rob
Jun 27 '08 #4
On Tue, 13 May 2008 20:23:34 -0700 (PDT), RobG <rg***@iinet.net.au>
wrote:
>On May 14, 11:25 am, Joe Boy <joe...@invalid.invalidwrote:
>I am using a javascript to display a slide show of images.

Each image is called with this in the body:-

<select name="slide" onchange="change();">
<optionvalue="pictures/picture01.jpg">
Text under the picture</option>
<optionvalue="pictures/picture02.jpg">
Text under the picture</option>
</select>

When I have a lot of text under the picture I want to spread it over
two lines but if I insert <brit is ignored

Is there any other way to force a line break within the <option...?

No.

BTW, this is an HTML question, not javascript, so try:

news:comp.infosystems.www.authoring.html

or just read:

<URL:
http://groups.google.com.au/group/co...617b6a7580723b
>>
Thanks Rob - that seems to cover it.
--
Joe Boy
Jun 27 '08 #5

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

Similar topics

1
by: Chris Sharman | last post by:
Writing a form, several questions have got a list of checkboxes, with associated descriptions (mostly one word), all on a line. Eg: Describe yourself: Fat Hairy Ugly Wears glasses. I want to...
4
by: Tom Dauria | last post by:
What I am trying to do is write a resume into a word document from information in an Access database. I have been using bookmarks and inserting table results into the document and so far it's...
2
by: Brett | last post by:
I'm writing something similar to this into a text file: txtfileError.WriteLine(CurrentDateTime(1) & " Error in Sub Sub1()" & idvar & Chr(10) & Chr(13) & ex.Message) txtfileError.WriteLine() ...
1
by: Ken Fine | last post by:
I'm using ASP VB. I want to insert a VbCr or a VbLf into a declared string every N characters. FWIW, I want to do this because of an apparent limitation in MSXML2, which I am using to "scrape" data...
3
by: rcoco | last post by:
Hi, I want to share this problem. I have a datagrid that will help me Insert data into sql database. So I made a button On my form so that when I press the button a new row on datagrid should be...
20
by: alice | last post by:
I'm doing some text swapping with javascript, got it working fine, but I would like the line to have line breaks and being a beginner, I don't even know if this is possible. So I have a line like...
1
by: Penelope Dramas | last post by:
Hello, I'm having problem inserting line break into one of the strings located in project resource. I've tried "Line1/nLine2" (from C#) and it wouldn't work. Tried Line1 + Environment.NewLine...
20
by: dav3 | last post by:
Alright folks I am in need of a lil guidance/assistance here. I have a program which reads in a txt file. This txt file contains lines of the form January 3, 2007, 85.8 Now each line of the txt...
5
by: atlanteavila | last post by:
Hello all, I have a problem with inserting text with quotes, or html code in to a MYSql Database. I've been trying to create my own content management system, and unfortunately I've come accross a...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.