I have a search box on my site that works in IE but not in FF. How can i giv you the code?

The code:
<pre><nowiki><!-- This Script is from www.htmlfreecodes.com, Coded by: Krishna Eydat-->
<SCRIPT language=JavaScript>
var NS4 = (document.layers);
var IE4 = (document.all);
var win = window;
var n = 0;
function findInPage(str) {
var txt, i, found;
if (str == "")
return false;
if (NS4) {
if (!win.find(str))
while(win.find(str, false, true))
n++;
else
n++;
if (n == 0)
alert("Not found.");
if (IE4) {
txt = win.document.body.createTextRange();
for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) {
txt.moveStart("character", 1);
txt.moveEnd("textedit");
if (found) {
txt.moveStart("character", -1);
txt.findText(str);
txt.select();
txt.scrollIntoView();
n++;
else {
if (n > 0) {
n = 0;
findInPage(str);
else
alert("Sorry, we couldn't find.Try again");
return false;
</SCRIPT>
<FORM name=search onsubmit="return findInPage(this.string.value);">
<P align=center><FONT size=4; COLOR=#ffffff;>
<INPUT style="BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #ffffff 1px solid; BORDER-BOTTOM: #ffffff 1px solid"
onchange="n = 0;" size=16 name=string><INPUT style="BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; FONT-SIZE: 8pt; FONT-COLOR: #ffffff; BORDER-LEFT: #ffffff 1px solid; BORDER-BOTTOM: #ffffff 1px solid; FONT-FAMILY: Tahoma; FONT-COLOR: #ffffff; BACKGROUND-COLOR: #16ADE6; color:#FFFFFF" type="submit" id="Button1" name="" value="Sök ID Kod" style="position:absolute;width:96px;height:25px;border:0px #000000 solid;background-color:#17AFE7;color:#FFFFFF;font-family:Arial;font-size:13px;">
</center></font></nowiki></pre>

Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
http://forums.mozillazine.org/viewforum.php?f=25 <br />
You'll need to register and login to be able to post in that forum.

Similar Messages

  • My dreamweaver site is broken in FireFox but not IE. How can I fix this?

    I have just designed my first real site using Dreamweaver CS4.  It looks right in IE but is broken up and ttotally wrong in FF.
    The  site is: www.midsouthsportsmedia.com
    Why is this and how  can I fix this to work in FF short of starting over.
    Any help will be appreciated
    Barry

    I see a similar Path Problem with the background images in your CSS:
    #middle {
        background-image:url(file:///C|/Users/Sean%20Sullivan/Desktop/MSSM%20Web%20Files/Night%20C lub/Original%20Site%20Files/images/middle.gif);
        width:873px;
        height:21px;
    #middle2 {
        background-image:url(file:///C|/Users/Sean%20Sullivan/Desktop/MSSM%20Web%20Files/Night%20C lub/Original%20Site%20Files/images/middle2.gif);
        width:873px;
        height:22px;
    #content {
        background-image:url(file:///C|/Users/Sean%20Sullivan/Desktop/MSSM%20Web%20Files/Night%20C lub/Original%20Site%20Files/images/content.gif);
        width:873px;
    and there are more....
    HINT:  Rename files, folders and images without SPACES.
    Between words, you can safely use underscores _ hyphens -  or UpperAndLowerCaseLetters.  But please don't use spaces.
    Best of luck on your new site.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • I have thousands of emails on my Ipad that I would like to delete permanently.  How can I do this?

    I have thousands of emails on my IPad that I would like to delete permanently.  How can I do this?

    Hi
    I know this feature isn't the most intuitive but I found out how to do it all at once.
    Go to the mail box you want the messages deleted from (probably the Inbox of your most used Email Address)
    Tap Edit
    Tap the circle left of the first message on the list to select the first email message
    Put your finger on Move but don't release it!
    With another fingerdeselect the first message so there are no messages selected
    Remove your finger from the Move button.
    Select the mailbox you want the messages to be moved to (probably Trash)
    Hope this helps!
    Taco

  • I have a 60 inch Sony XBR TV that has DVI input but not HDMI. I am using an adapter to get the video from my Apple TV, but the screen flashes a lot. Do I have any other choices other than buying a new TV?

    I have a 60 inch Sony XBR TV that has DVI input but not HDMI. I am using an adapter to get the video from my Apple TV to the Sony, but the screen flashes a lot. Do I have any other choices other than buying a new TV?

    Is this an iphone question?
    You have posted in the iphone forum.

  • I have photos on my iphone 4 that i'm trying to transfer to iphoto.  The problem is when I plug the phone in, it only wants to transfer the new photos, not all.  How can I take all the photos off my phone and put them into iphoto?

    I have photos on my iphone 4 that i'm trying to transfer to iphoto.  The problem is when I plug the phone in, it only wants to transfer the new photos, not all.  How can I take all the photos off my phone and put them into iphoto? Even if there are duplicates, I'd like to make sure I get all the photos from my phone into iphoto.  Thanks

    To see all the photos on the phone, including photos that have already been imported into iPhoto, deselect the "Hide Photos Already Imported" checkbox. If the camera contains photos that have already been imported into iPhoto, those photos are hidden by default.

  • HT201653 We are a retail shop which has a copy of AppleCare Protection plan. The box is not sealed. How can I tell if the product has been registered or not.

    We are a retail shop which has a copy of AppleCare Protection plan. The box is not sealed. How can I tell if the product has been registered or not.

    Since the only thing needed in that box is the small piece of paper with the (very long) registration code on it (usually found inside the booklet), see if that is actually there and, if it is, call Apple at 800-275-2273 and ask to be transferred to the Applecare department. Here is the link to the Applecare plan - just in case you may need it, see the fax numbers listed under para. 9 (Cancellation).
    http://www.apple.com/legal/sales-support/applecare/appmacnaen.html

  • I have micro soft office  but not outlook so how can i only upgrade to outlook, i have micro soft office  but not outlook so how can i only upgrade to outlook

    I have microsoft office but not outlook so how can i upgrade only to get outlook ?

    You can purchase a step-up upgrade from Microsoft for $99 for one install or $299 for all three at:
    http:/http://www.microsoft.com/mac/upgrade-office-for-mac
    This gets you an unlock key to open Outlook, which you will find is already in the Office folder, but locked.

  • I have a JavaScript loop that works in Dreamweaver but not in my browsers. What's missing? Should the page load another script first?

    I know that the code is clean because it runs perfectly in DW (even with the occasional lag). Shorter loop functions have also worked in DW, but not in my Chrome or IE browsers. Is there a script or program that the HTML should run first?

    I'm sorry, of course:
    The Crow Haven Witches and Psychics of Salem
    I am designing a phone psychic hotline (don't ask! ) page, and the loop is supposed to sort the readers according to their availability. Each should appear in their respective listing.
    The setup works perfectly in DW, but none of the scripted material appears in the current page. I will add a photo of how it does look in DW.

  • Can only choose attachments one at a time for webmail and for entries to an art organization website.  And the site's "Upload File" button will not respond, so I can't even upload the one jpg I have chosen.

    I am the only one who can't upload to the submissions page. Javascript is turned on, not java, with Safari 5.0.6 and Leopard. Thanks for helping.

    Thanks for your response.  I do have javascript turned on (not java).  To answer your question,
    I was trying to upload 3 jpgs to the submissions page of a visual arts website. I could only highlight one jpg at a time in the "Choose File" option, and then the "Upload File" button of the submissions page would not respond.
    It's an ongoing problem with this site (I'm the only one with this issue and there are a lot of submissions). I have to send the images as email attachements to the administrator of the site.  When doing this via webmail, I still the one attachment at a time problem, but the images get to the administrator.  Thanks for helping.

  • I have a new ipod and when I sign in to Words with Friends it says that user name is already in use. How can I continue using the same user name with a different ipod?

    I have a new ipod and added all my apps to it. When I sign in to Words with Friends it says that "user name is already in use" because it is linked to my old ipod. How can I use the same user name with my new ipod?

    Was the iPod setup via iTunes on this computer?
    Setup via wifi?
    Was the iPod previous synced to another iTunes library/computer?
    Have you successfully synced from this iTunes library/computer before?
    Do the songs play in iTunes?           
    Do you have the right boxes checked to sync?
    iTunes: Syncing media content to iOS devices and iPod        
    Try syncing using the manual method                 

  • I have to open website which opens only with google but not from safari. how can i get such google?

    i have a website which opens only with google, but not google from safari. how i can get google w/o using safari?

    From the Safari menu bar, select
    Safari ▹ Preferences... ▹ Extensions
    Turn all extensions OFF and test. If the problem is resolved, turn extensions back ON and then disable them one or a few at a time until you find the culprit.
    If you wish, you may be able to salvage the errant extension by uninstalling and reinstalling it. Its settings will revert to their defaults. If the extension still causes a problem, remove it permanently or refer to its developer for support.

  • I have air printer that works on iPhones but not iPad 2

    I have air printer that works with both iPhones but not with iPad2

    Just to build on red_menace's answer a bit...
    set MyText to do shell script "ps -A | grep '[M]ac VNC 2.1.app' | awk '{print $5}'"
    log "MyText=" & MyText
    set content of text field "Dir" of front window to MyText
    The log command will write the results of the "do shell script" to Xcode's run log window. If you see the correct output there then you know that part is working correctly and the problem is in the way you're trying to insert the string into the text field. Maybe "Dir" doesn't match the name you've given your text field in IB? Or maybe your text field is contained within another view, such as an NSBox or an NSTabView?
    Also, I guess "of front window" should work in AppleScript Studio but I always give my windows AppleScript names in IB and then explicitly specify the window in my scripts. Like this:
    set content of text field "Dir" of window "MyWindow" to MyText
    Steve

  • Can someone please help. I have affiliate links in my web site that work fine on my computer but don't work on my iPad.

    I try to tap on the affiliate links on my websit to go to theirs as a customer would do and it doesn't work on my ipad

    You probably need a Web Browser that support Flash. We can try the link or you.

  • I have made a Flash gallery that works in DW but not in browsers

    Hi, I am fairly new to Flash and Dreamweaver and have encountered a problem with my CS4 Dreamwever and Flash. I have made two galleries in flash of 30-40 stills that change after 2 seconds in time line. I saved these and exported to DW as .swf files.
    Having placed them into my web page in DW and viewing the page locally in both Safari (yes I'am a Mac user) and Firefox they work fine, so I have uploaded the whole schbang to the remote server. When viewing the pages in Safari or Firefox they do not view at all, I get either a blank field in the page where the Flash should be or a message from adobe saying I need to update to a newer version of flash player, depending on which browser I'm using. I have followed the download link and installed the new player but it still comes up the same. Is this somthing I'm doing wrong or a problem with CS4, The CS3 I trained on seemed to be able to do this ok?
    All help greatfully received, Thanks

    Yopu may have missed uploading a javascript file to the server.  It will be identified in the head section of the html file, possibly as a file in a Scripts folder.  If that is not the case, then you'll need to provide a link to the file on the server.

  • I have tried all suggestions to have my home page in english. All setting show english, but not only my home page shows me in the Nederlands, but others too.

    I have checked all my settings, and they are correct, but my home page (yahoo) has me in the Nederlands using their language. Not english. I have to click the USA tab several times to bring up the USA. Then when I go to another website occasionally it returns to the foreign language. What can I do?

    Solved the problem for now by changing my home page. Thanks to you all

Maybe you are looking for

  • How to add a character at the end of an array element that meets certain criteria.

    Hi. I am using CF 9.2.1. I started learning CF yesterday, and I am trying to figure out a way to add a special character (like "?", "!"," & ") to an array row if the first row element (say, element [1][1]) has a specific letter like " t" in the word

  • Getting to the home screen instanly plus

    two simple qustions: 1.  how  to i get to the  homescreen or  is  it desktop?-instantly;  do i have to switch it off? 2.how  do i set a  home  page  onthe  broswer  and  have the playbbook  open on that page when it  starts?-is  that possible?-or too

  • Choppy video/audio playback after two suspend/resume cycles?

    Hello! Today I figured out, that my video and audi playback becomes choppy after two or more suspend-cycles. Can somebody confirm this? I'm running a up-to-date Archlinux on my ThinkPad t430s. Several applications are affected: mplayer (virtual termi

  • Could i buy a mac os x leopard software from app store?

    could i buy a mac os x leopard software from app store?  for imac 2008

  • Login screen to mySQL

    Hi there, I'm trying to write a small Gui screen that will require a user to log in to a mySQL data base, now I've got it to log in easily enough. That's all fine. I should say at this point that I'm not using the user table at all. I was just wonder