473,763 Members | 1,382 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

need code that forces horizontal scroll bar in all cases.

tpgames
785 Contributor
I need a code that forces all people's firefox browsers to give them a horizontal scroll bar regardless of what their tool bars and other factors tell the browser to do. I have a crossword puzzle game that does not show up on my friends browser correctly, but shows up correctly in mine and on my sisters. My sister and he has the same screen size. He says he was using FF like me. I put the game up on IE and it showed up correctly. It only doesn't show up correctly on his computer.

Currently, I use an image thats longer than necessary to get the horizontal bar on my page.
the page can be found here: crossword puzzle
The puzzle is in a form. The snippets of code is below. Thanks in advance!
(I did google search this, but they all say the same thing and then give me a code to hide the silly bar I can't force to show up in the first place). The below contains both html and JS.


Expand|Select|Wrap|Line Numbers
  1. <TABLE BORDER WIDTH="100%" >
  2.  
  3. <tr>
  4. <td>
  5. <img src="http://www.tpgames.net/gaming/2/word/xw/img/z.gif" width="1206" height="2" alt="">
  6. <TR BGCOLOR="#000000">
  7. <TD>
  8. <script>
  9.  
  10. function crossWord(){
  11. if (document.form.c1.value=="S"
  12.     && document.form.c2.value=="O"
  13.     && document.form.c3.value=="L"
  14.     && document.form.c4.value=="D"
  15.  
  16. SNIPPED CODE HERE
  17.  
  18. && document.form.c413.value=="N") 
  19.     alert("GREAT!! You solved the puzzle correctly!")
  20. else {alert("Not quite right, check your answers.")}
  21.    }
  22. </script>
  23.  
  24. <form name="form">
  25.  
  26. <img src="http://www.tpgames.net/gaming/2/word/xw/img/z.gif"
  27. width="1200" height="8"><br>
  28. <img src="http://www.tpgames.net/gaming/2/word/xw/img/1AD.gif">
  29.  
  30. <!-- SOLD -->
  31. <input type="text" name="c1" size="1">
  32. <input type="text" name="c2" size="1">
  33. <input type="text" name="c3" size="1">
  34. <input type="text" name="c4" size="1">
  35. <img src="http://www.tpgames.net/gaming/2/word/xw/img/3D.gif">
  36. <img src="http://www.tpgames.net/gaming/2/word/xw/img/x.gif">
  37. <img src="http://www.tpgames.net/gaming/2/word/xw/img/x.gif">
  38. SNIPPED CODE HERE
  39.  
  40. <img src="http://www.tpgames.net/gaming/2/word/xw/img/x.gif">
  41. <img src="http://www.tpgames.net/gaming/2/word/xw/img/x.gif">
  42. <img src="http://www.tpgames.net/gaming/2/word/xw/img/z.gif">
  43. <br>
  44. <center>
  45. <input type="button" value="Check Puzzle" onClick="crossWord()">............................................<input type="reset" value="Reset Puzzle">
  46. </center>
  47.  
  48. </form></TD>
  49. </TABLE>
  50.  
Oct 21 '07 #1
4 2496
tpgames
785 Contributor
If I were to use min-width in the CSS in the body tag part, would it solve the problem? I'm using only the bare minimum of CSS, as the game doesn't need the td tags and text to be any different from the main body. Thanks!

Expand|Select|Wrap|Line Numbers
  1. BODY {
  2.        background-color: #ffffff;
  3.         background-image: url(/gaming/2/20squares/marble30.jpg);
  4.         background-repeat: repeat;
  5.         background-position: top center;
  6.         border: 2px;
  7.         min-width:1220px;
  8.         margin: 1% 1% 10% 0%;
  9.         font-family: Arial, Helvetica, Verdana, sans-serif;
  10.         font-size: 16px;
  11.         line-height: 18px;
  12.         vertical-align: text-top;
  13.        color: #000000;    
  14. }
Oct 21 '07 #2
drhowarddrfine
7,435 Recognized Expert Expert
In your css, under body, you are missing the semicolon behind width. Does this fix the problem?
Oct 21 '07 #3
tpgames
785 Contributor
In your css, under body, you are missing the semicolon behind width. Does this fix the problem?
I can't believe I did that. LOL I knew it had to be some silly error somewheres. Thanks! I did email my friend, so I'll find out if his pc shows it correctly. I'm sure it will though.
Oct 22 '07 #4
drhowarddrfine
7,435 Recognized Expert Expert
This is what validation is for. You would have caught it just like I did.
Oct 22 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2888
by: Nishant | last post by:
I have a combo box with a horizontal scroll bar. (Used SetHorizontalExtent) The dropdown with horizontal scroll bar works fine when I have more items in the dropdown list. However when the number of items is less, the horizontal scroll bar comes over the last item. If there is only one item, I am not able to see that item because of Horizontal scroll.
2
2534
by: robert | last post by:
I've made a gallery site for an artist and it works well -- the gallery page has a central large image which is swapped when thumbnail images are clicked. I'm using Dreamweaver's "SwapImage" behavior. The problem is that this fails under certain versions of IE and possibly NN on PCs and Macs -- I haven't gotten my client to send me details of what version he's using (sorry) or any of my 'beta testers' -- but I'm really getting frustrated....
1
2119
by: Jeremy Chapman | last post by:
I've got a grid inside a div so that it's got scroll bars around it. What I want to do is have the header row fixed at the top, so that the vertical scroll bars scroll just the data rows of the grid while the horizontal scroll bar scrolls both the data and the header row. The only way I can think of doing it is putting the data portion as a seperate grid in a div and the header in a seperate div. I would force the header div not to have...
2
4528
by: Tina | last post by:
Am I missing something or does the listbox web control not have a horizontal scroll capability? Thanks, T
1
2878
by: RJN | last post by:
Hi I'm using an iFrame to enclose another document. The iFrame width is sufficient to hold the enclosed document. When the enclosed document has more data and exceeds the height set for iFrame, both the scroll bars , horizontal and vertical appear. I want to avoid the horizontal scroll bar. If I set the scrolling property to "no", then both the scroll bars don't appear. I tried placing the iFrame tag inside div and setting the scrolling...
2
4229
by: Eduard | last post by:
I have a ASP.Net datagrid wrap in the following div: <DIV id="divPart2" style="OVERFLOW: hidden">. Another div controls the horizontal scrolling: <DIV id="scroll1" style="OVERFLOW: scroll; WIDTH: 800px; LINE-HEIGHT: 0px; HEIGHT: 17px" onscroll="javascript: document.getElementById('divPart2').scrollLeft = this.scrollLeft;"> scrolls the datagrid horizontally. When the horizontal scroll box is dragged or any of the scrollbar arrows is
3
2726
by: dotcom | last post by:
hello, i am sending whole javascript code(it is for freezing html header) it works fine eith IE but not firefox scroll bar does not come var divContent = null; var divHeaderRow = null; var divHeaderColumn = null; var divHeaderRowColumn = null; var headerRowFirstColumn = null; var x;
2
2421
by: pbd22 | last post by:
Hi. I am trying to make a horizontal list that counts (downward) and a horizontal list that illustrates the time. Both list should be formatted the same (except for the nomenclature). I seem to be successful with the y axis but, in my horizontal list (time), I can't seem to get it to scroll successfully. Below is the link, thanks:
1
9107
by: amuven | last post by:
Hi All, I need to put a horizontal scroll bar for 4 cells alone where my first cell in table should not contain any horizontal scroll bar . In clear, let us say there are 5 columns in my table i want to put horizontal scroll bar only for 2nd,3rd,4th and 5th column alone where my 1st column should not horizontal scroll bar . so that I can scroll only last 4 columns . Please some one provide me sample code as early as possible in doing...
0
9563
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9386
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,...
1
9938
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9822
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6642
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
5406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3917
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3523
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2793
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.