473,693 Members | 2,707 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

need code that forces horizontal scroll bar in all cases.

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%" >
  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>
  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"
  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>
  24. <form name="form">
  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">
  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">
  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>
  48. </form></TD>
  49. </TABLE>
Oct 21 '07 #1
4 2494
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
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
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
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

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.
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....
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...
by: Tina | last post by:
Am I missing something or does the listbox web control not have a horizontal scroll capability? Thanks, T
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...
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
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;
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:
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...
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,...
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,...
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...
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...
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();...
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...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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
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.