JavaScript - Make Browser Without Toolbars
Hi I am building a site for use on a local server and I want it so that when you launch the file it will it automatically remove the toolbars.
If anyone can help It would be great. Thanks Similar TutorialsHi everybody, I do not know any javascript, so can somebody help me with a simple script. I would like to launch a web page, which will have no menu bar and no toolbars. How can I do that? Thanking you in advance Hrisula Hello Am designig a web site i want that sote to be appear same in all browser is their any script which makes my site look same in all browsers Hi There I am new to Javascript and this forum. I found and changed a browser for my website. It works great and I am happy with it the only problem I am having is I dont know how to link the buttons to pages that would oad into the same age as where the menus are in. Can anyone help me getting started - It would be highly appreciated. to c the menus - http://abc-magasin.com/BROWSER/browser.html the code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <title>Serious Seeds</title> <!--NodeFire API Script Reference--> <script type="text/javascript" src="js/api.js"></script> <!--Pure CSS Core (menu widget)--> <!--[if lte IE 6]><style type="text/css">.nfPure .nfItem{width:0px;}</style><![endif]--> <!--[if lte IE 7]><style type="text/css">.nfMain,.nfMain .nfLink,.nfMain .nfSubS{zoom:1;}.nfPure .nfLink:hover{z-index:1101;}.nfPure .nfItem{display:inline !important;}</style><![endif]--> <link rel="stylesheet" href="css/menu_core.css" type="text/css"> <!--Apply Horizontal Subs Layout--> <link rel="stylesheet" href="css/layouts/menu_horizontalAndVerticalSubs.css" type="text/css"> <!--Style Skin (menu widget)--> <link rel="stylesheet" href="css/skins/menu_horizontalSub1.css" type="text/css"> <!--Custom Styles--> <style type="text/css"> /*~~~~~~~~~~~~~~ Custom Menu Classes ~~~~~~~~~~~~~~~~*/ .myTitle {color:#453f2e;font-family:arial;font-size:.9em;font-weight:normal;margin:20px 0px 5px 0px;} .myTitleTop {margin:5px 0px;} .style1 {color: #006600} </style> <!--Tweak a 1px margin difference for IE6 (overrides the skin styles)--> <!--[if lte IE 6]><style type="text/css">.nfMain .nfSubC {margin:1px 0px 0px 6px;}.nfMain .nfSubS .nfSubC {margin:1px 0px 0px -1px;}</style><![endif]--> </head><body style="margin:105px 0px 0px 3px;background:#ffffff url('images/gallery/menu/horizontalSub1/bg.png') repeat-x"> <!--LATEST NEWS--> <ul id="myMenu" class="nfMain nfPure"> <li class="nfItem"> <div class="nfLink">Latest News</div> <dl id='mySub1' class="nfSubC nfSubS nfPure"> <dd class="nfItem"><div class="nfLink">Keep up to Date</div> <dl class="nfSubC nfSubS"> <!--<dt class="myTitle myTitleTop">Round 'n Round</dt>--> <dd class="nfItem"><a class="nfLink" href="javascript:void(0)">New Strain - Serious 6</a></dd> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">2</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">3</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">4</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">5</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">6</a> </dd> </dl> <dd class="nfItem"><div class="nfLink">Feminized Seeds</div> <dl class="nfSubC nfSubS"> <!--<dt class="myTitle myTitleTop">Round 'n Round</dt>--> <dd class="nfItem"><a class="nfLink" href="javascript:void(0)">Now feminized seeds available</a></dd> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">2</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">3</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">4</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">5</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">6</a> </dd> </dl> <dd class="nfItem"><div class="nfLink">Serious moves to 11 seeds</div> <dl class="nfSubC nfSubS"> <!--<dt class="myTitle myTitleTop">Round 'n Round</dt>--> <dd class="nfItem"><a href="date.html" target="_browser" class="nfLink">Why we move to 11 seeds?</a></dd> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">2</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">3</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">4</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">5</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">6</a> </dd> </dl> </dl> </li> <!--------------------ORDERFORM---------------------> <li class="nfItem"> <div class="nfLink">Orderform</div> <dl id='mySub8' class="nfSubC nfSubS nfPure"> <dd class="nfItem"><div class="nfLink">Order Seeds</div> <dl class="nfSubC nfSubS"> <!--<dt class="myTitle myTitleTop">Round 'n Round</dt>--> <dd class="nfItem"><a class="nfLink" href="javascript:void(0)">Before you order - read this</a></dd> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">How to order seeds</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">Terms and Conditions</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">Shipping</a> </dd> </dl> <dd class="nfItem"><div class="nfLink">Availability of Seeds</div> <dl class="nfSubC nfSubS"> <!--<dt class="myTitle myTitleTop">Round 'n Round</dt>--> <dd class="nfItem"><a class="nfLink" href="javascript:void(0)">Regular Seeds</a></dd> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">Feminized Seeds</a> </dd> </dl> <dd class="nfItem"><div class="nfLink">Orderform</div> <dl class="nfSubC nfSubS"> <!--<dt class="myTitle myTitleTop">Round 'n Round</dt>--> <dd class="nfItem"><a class="nfLink" href="javascript:void(0)">Before you order ...</a></dd> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">Read this statement first</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">Shipping</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">Get the Orderform</a> </dd> </dl> <dd class="nfItem"><div class="nfLink">Glossary</div> <dl class="nfSubC nfSubS"> <!--<dt class="myTitle myTitleTop">Round 'n Round</dt>--> <dd class="nfItem"><a class="nfLink" href="javascript:void(0)">Glossary 1</a></dd> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">Glossary 2</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">Glossary 3</a> </dd> </dl> </dl> </li> <!--------------------FORUM---------------------> <li class="nfItem"> <div class="nfLink">Forum</div> <dl id='mySub9' class="nfSubC nfSubS nfPure"> <dd class="nfItem"><div class="nfLink">Sign up</div> <dl class="nfSubC nfSubS"> <!--<dt class="myTitle myTitleTop">Round 'n Round</dt>--> <dd class="nfItem"><a class="nfLink" href="javascript:void(0)">Before you sign up - read this</a></dd> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">What to find in the forum</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">Upload your own pictures</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">Chatbox</a> </dd> </dl> <dd class="nfItem"><div class="nfLink">Go to the Serious Seeds forum</div> <dl class="nfSubC nfSubS"> <!--<dt class="myTitle myTitleTop">Round 'n Round</dt>--> <dd class="nfItem"><a class="nfLink" href="javascript:void(0)">Link to Forum</a></dd> </dd> </dl> <dd class="nfItem"><div class="nfLink">Glossary</div> <dl class="nfSubC nfSubS"> <!--<dt class="myTitle myTitleTop">Round 'n Round</dt>--> <dd class="nfItem"><a class="nfLink" href="javascript:void(0)">Glossary 1</a></dd> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">Glossary 2</a> </dd> </dl> </dl> </li> <!--------------------FAQ'S---------------------> <li class="nfItem"> <div class="nfLink">Faq</div> <dl id='mySub11' class="nfSubC nfSubS nfPure"> <dd class="nfItem"><div class="nfLink">AK-47</div> <dl class="nfSubC nfSubS"> <!--<dt class="myTitle myTitleTop">Round 'n Round</dt>--> <dd class="nfItem"><a class="nfLink" href="javascript:void(0)">How many seeds per square meter?</a></dd> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">AK question 2</a> </dd> </dl> <dd class="nfItem"><div class="nfLink">Bubble Gum</div> <dl class="nfSubC nfSubS"> <!--<dt class="myTitle myTitleTop">Round 'n Round</dt>--> <dd class="nfItem"><a class="nfLink" href="javascript:void(0)">How many seeds per square meter?</a></dd> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">BQ question 2</a> </dd> </dl> <dd class="nfItem"><div class="nfLink">Chronic</div> <dl class="nfSubC nfSubS"> <!--<dt class="myTitle myTitleTop">Round 'n Round</dt>--> <dd class="nfItem"><a class="nfLink" href="javascript:void(0)">How many seeds per square meter?</a></dd> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">CH question 2</a> </dd> </dl> <dd class="nfItem"><div class="nfLink">Kali Mist</div> <dl class="nfSubC nfSubS"> <!--<dt class="myTitle myTitleTop">Round 'n Round</dt>--> <dd class="nfItem"><a class="nfLink" href="javascript:void(0)">How many seeds per square meter?</a></dd> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">KM question 2</a> </dd> </dl> <dd class="nfItem"><div class="nfLink">Serious 6</div> <dl class="nfSubC nfSubS"> <!--<dt class="myTitle myTitleTop">Round 'n Round</dt>--> <dd class="nfItem"><a class="nfLink" href="javascript:void(0)">How many seeds per square meter?</a></dd> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">S6 question 2</a> </dd> </dl> <dd class="nfItem"><div class="nfLink">White Russian</div> <dl class="nfSubC nfSubS"> <!--<dt class="myTitle myTitleTop">Round 'n Round</dt>--> <dd class="nfItem"><a class="nfLink" href="javascript:void(0)">How many seeds per square meter?</a></dd> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">WR question 2</a> </dd> </dl> <dd class="nfItem"><div class="nfLink">General Questions</div> <dl class="nfSubC nfSubS"> <!--<dt class="myTitle myTitleTop">Round 'n Round</dt>--> <dd class="nfItem"><a class="nfLink" href="javascript:void(0)">How many seeds per square meter?</a></dd> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">GQ question 2</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">GQ question 3</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">GQ question 4</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">GQ question 5</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">GQ question 6</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">GQ question 7</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">GQ question 8</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">GQ question 9</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">GQ question 10</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">GQ question 11</a> </dd> </dl> <dd class="nfItem"><div class="nfLink">Glossary</div> <dl class="nfSubC nfSubS"> <!--<dt class="myTitle myTitleTop">Round 'n Round</dt>--> <dd class="nfItem"><a class="nfLink" href="javascript:void(0)">Glossary 1</a></dd> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">Glossary 2</a> <dd class="nfItem"><a class="nfLink" href="javascript:setpath()">Glossary </a> </dd> </dl> <p> </p> </dl> <p> </p> <dl class="nfSubC nfSubS nfPure"> <dd class="nfItem"> <p> </p> </dl> </li></ul> <p> </p> <p> this is where I would like my pages to open when clicked on the pulldownmenus </div></p> <script type="text/javascript"> //Create the main menu object var myMenuConfig = {showTimerMS:500, hideTimerMS:500, menuTrigger:['none','mouseover'], documentTrigger:'none'}; var myMenu = new NF.widget.menu("myMenu", myMenuConfig); //Create the sub level 1+ menu objects var mySub1 = new NF.widget.menu("mySub1", {showTimerMS:150, hideTimerMS:150}); var mySub2 = new NF.widget.menu("mySub2", {showTimerMS:150, hideTimerMS:150}); var mySub3 = new NF.widget.menu("mySub3", {showTimerMS:150, hideTimerMS:150}); var mySub4 = new NF.widget.menu("mySub4", {showTimerMS:150, hideTimerMS:150}); var mySub4 = new NF.widget.menu("mySub5", {showTimerMS:150, hideTimerMS:150}); var mySub4 = new NF.widget.menu("mySub6", {showTimerMS:150, hideTimerMS:150}); var mySub4 = new NF.widget.menu("mySub7", {showTimerMS:150, hideTimerMS:150}); var mySub4 = new NF.widget.menu("mySub8", {showTimerMS:150, hideTimerMS:150}); var mySub4 = new NF.widget.menu("mySub9", {showTimerMS:150, hideTimerMS:150}); var mySub4 = new NF.widget.menu("mySub10", {showTimerMS:150, hideTimerMS:150}); var mySub4 = new NF.widget.menu("mySub11", {showTimerMS:150, hideTimerMS:150}); //HTML for main item down arrows var html = "<img class='arrowDown' src='images/gallery/menu/horizontalSub1/downArrow1.gif' width=11 height=11 style='position:absolute;border-width:0px;left:11px;top:2px;visibility:hidden;'/>"; //Create a new replicator with the html string. Config properties specify where to target the replicated clones var downArrowReplicator = new NF.replicator("content", {master:html, widgetClass:"nfParent", targetClass:"nfLink", widgetLevel:0, addWhe "first-child"}) myMenu.addReplicator(downArrowReplicator); //Show Down Arrow Animation var clip = new NF.anim.clip({opacity:{start:0,end:1}},{frames:20,hook:"NFplayOnLinkActiveShow",targetClass:"arrowDo wn",startStyles:{visibility:'visible'}}); myReplicator = new NF.replicator("transition",{master:clip,widgetClass:"nfItem",targetClass:"nfLink",widgetLevel:0}); myMenu.addReplicator(myReplicator); //Hide Down Arrow Animation var clip = new NF.anim.clip({opacity:{start:1,end:0}},{frames:20,hook:"NFplayOnLinkActiveHide",targetClass:"arrowDo wn",endStyles:{visibility:'hidden'}}); myReplicator = new NF.replicator("transition",{master:clip,widgetClass:"nfItem",targetClass:"nfLink",widgetLevel:0}); myMenu.addReplicator(myReplicator); //Activate the menu objects NF.widget.menuManager.activateMenus(); //Set an initial active path NF.widget.menuManager.setActivePath(mySub1.root); function handle_radio(e,type) { if (type=="click") { //Each array item corresponds with a menu level starting at the main myMenuConfig.itemTrigger = ['click','mouseover'] } else myMenuConfig.itemTrigger = null; } </script> <body> </body> </html> Code: function movediv() { booking_details.style.top = document.body.scrollTop; } --------------- <style> .demo {color:#000000; border-color:#666666; background-color:#FFCC00; font-family:Verdana, Arial, Helvetica, sans-serif; font-weight:bold; layer-background-color:#cccccc; position:absolute; left:12.5%; bottom:0px; width:100%; height:100px; visibility:hidden; z-index:5; border-color:#FFFFFF; border:inherit;} </style> --------------- <body onScroll="movediv();"> <div id="booking_details" class="demo" style="visibility:hidden"> .... .... code ..... .... </div> </body> When i scroll the DIV sticks to the TOP of the browser, is there any way to make it sticks to the BOTTOM of the browser as you scroll? I need a script that will redirect to a specific page is the browser is safari version 4. if the browser is NOT safari 4 I want the browser to stay on the current page.
Greetings, I am currently using the websites tutorial about browser detection using the navigator. http://www.javascriptkit.com/javatutors/navigator.shtml I am however finding myself unable to detect a pattern in order to learn from. My aim is to use Browser detection to have a CSS file for each browser type, such as Firefox, IE, Opera, Safari and then an overall CSS file if none of the above, to fix numerous flaws. For IE and Firefox using the site's code is all well and good and while I haven't tested it yet I'm wondering how to set up the coding so that it can detect a safari browser. There are lots of slashes and d's and brackets and I do find myself unable to understand their purpose. So if someone can explain how I could do it for Safari I would be very appreciative. Hello, I have a question what is the best way to identify a browser, browser version and OS in javascript. I have try a few scripts but they all fail. This will help me out formating the code for diferent browsers. Thanks Hey, new guy here, not sure if this should be under XML, but this was my best guess. Am working with javascript, need to pull the text content from a bunch of places on the page, then I build xml with them, and now i want to have a button that will take user to a page in the browser where all they see is the raw xml tree. Help? I have code that I've been using for awhile now that will automatically log users off my site after a period of time. It works great using a 32 bit browser but not at all with a 64 bit browser. For the life of me I can't figure this out. <script type='text/javascript'> var secondsRemaining = 30; var mhcTimer; function countDown() { secondsRemaining -= 1; if (secondsRemaining <= 0) { secondsRemaining = 0; window.location='login.aspx'; } } function startAutoLogoff() { if (mhcTimer) { return false; } else { mhcTimer = setInterval('countDown();', 1000); } } startAutoLogoff(); </script> I am attempting to make an page on my website where visitors can set my website as their homepage. I am trying to make my website read which browser my visitors are using and then redirects them to the page for the right browser where I can tell them how they can set my website as their homepage. Basically I need exactly the same thing as THIS. Could you explain to me in plain English how I can realize this. This is what I know have: Code: <table width="759" border="0" align="center" cellpadding="0" cellspacing="0" > <tr align="center"> <td width="378" height="28" align="right">Selecteer jouw browser </td> <td width="16"></td> <td width="365" align="left"><form id="browserSelection" name="browserSelection" action="customizeBrowser" method="GET"><select name="browser" size="1" id="browser" onchange="document.browserSelection.submit();"><option value="ff" selected>Firefox</option><option value="ie">Internet Explorer</option><option value="chrome">Chrome</option><option value="opera">Opera</option><option value="safari">Safari</option></select></form></td> </tr> </table> ________________________________________ Please tell me if I make any English mistakes in my posts. I am trying to write as perfectly possible. Hi, On www.pizzalita.com, I added a div layer that would ask people for an email address and if you don't like to, you camn click the cross to close that layer. This works just fine in Google Chrome but I today realized that it doesn't work for other browsers, not in IE nor in Firefox. Does anyone have any hints, suggestions and tips how to resolve this to get it working properly in all browsers? Firefox says it can't find the function closediv() - but why not, it is there, I can look at the source and I see it.... any clues would be awesome! Thank you very much, help is appreciated! Ron Hello, I couldn't find another thread that had this problem but it seems like it would be fairly simple. I am also just now starting to learn JavaScript. But when I enter this code into Notepad++ Code: <HTML> <HEAD> </HEAD> <BODY> <SCRIPT type = "text/javascript"> document.write("Hello World"); </SCRIPT> </BODY> </HTML> Instead of printing out "Hello World" as it should, it simply shows me the code I wrote line for line. I have tried opening in both Chrome and IE and since all other webpages work fine I assume that both browsers have javascript enabled. Thanks in advance hey all is there a code where I can detect if the browser is IE6 or IE7 and send them to another webpage? my current design is not compatible with IE6 or 7 and i want to make a new page that's compatible. thanks! Hi, i wanted to know whats wrong with this coding as its making the browser crash, firefox 5 $(document).ready(function() { /* open rel=external in new window */ $('a[rel=external]').attr('target', '_blank'); /*Scrolling background clouds */ var offset = 600; var offseta = 1450; function scrollbackground() { // decrease the offset by 1, or if its less than 1 increase it by // the background height minus 1 offset = offset + 1; offseta = offseta + 1; // apply the background position if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) { $('#cloud2').css("background-position", offseta + "px top"); } else { $('#cloud').css("background-position", offset + "px top"); $('#cloud2').css("background-position", offseta + "px top"); } // call self to continue animation setTimeout(function() { scrollbackground(); }, 100 ); } // Start the animation scrollbackground(); }); //end Hi, I wrote some javascript for a slideshow. The main webpage contains: Code: <FORM NAME="myform"> <IMG SRC="firstimage.jpg" NAME="mypic"><br> <INPUT TYPE="text" SIZE="180" NAME="mycaption" VALUE="First Caption"> <INPUT TYPE="button" VALUE="Prev" NAME="prevbutton" DISABLED=true ONCLICK="slideshowBack()"> <INPUT TYPE="button" VALUE="Next" NAME="nextbutton" ONCLICK="slideshowUp()"> </FORM> which assigns the image and caption for the first picture, and sets the Prev and Next buttons to disabled and not disabled respectively. So you start with the first image and caption, and an enabled "Next" button. I have global javascript variables: num (init to 1), max (init to 7), img1..7 (new Image ()), img1..7.src (filenames for the images), text1..7 (captions for the images), map1..7 (maps for the images). The function for moving to the next slide is: Code: function slideshowUp() { num=num+1 if (num==max+1) {num=1} document.mypic.src=eval("img"+num+".src") document.getElementById("mypic").useMap=eval("map"+num) document.myform.mycaption.value=eval("text"+num) document.getElementById("prevbutton").disabled=(num==1) document.getElementById("nextbutton").disabled=(num==max) } I developed this in HMTLPad (10.2) and it works perfectly in that program's preview mode. But it won't work in the main browsers! In IE 9 (9.0.33), when you click the Next button, nothing at all happens. Image and caption stay the same, Next stays enabled, Prev stays disabled. Maps don't work. Chrome (38.0.2125.122 m) and Firefox (27.0) behave like each other. The images change, but not the captions or the Prev/Next buttons. Maps don't work. Is this to be expected? If so, how do I work around it? I'm trying to use SmoothGallery 2.1 on my website as a featured box. I tried opening the demos provided with the code in all browsers to make sure it was compatible and it showed fine in them all. I copied the javascript onto my site and I'm able to show the gallery. However in Chrome and Internet Explorer it shows fine, but Firefox the images are spread vertically down my site and the javascript gallery box doesn't show. I don't understand why this is an issue because it shows fine opening the demo pages and the javascript code and css is a straight copy from the folder :S Can anyone help me out? Website I'm having the issue on is www.deewon.com -Thanks hi im having a bit of trouble with a code i need to know what exactly does getFlashMovie return so i can figure out why this code isnt working in IE Code: <script type="text/javascript"> function getFlashMovie(movieName) { if(navigator.appName.indexOf("Microsoft") != -1) { var what = window[movieName]; alert(what); return what; } else { var what = document[movieName]; alert(what); return what; } } function formSend() { getFlashMovie("flashContent").callFunction(); } </script> edit: im using swfobject2, with dynamic publishing btw Dear All Experts I wrote a simple code in javascript and it is working fine with IE but when I open the page in FireFox or in Google Crome it is not working as I expect. Actually I am enabling and disabling the combo box on the on change event of radio button. Please check the code attached here. And visit my site for output www.crispwerx.com/catasset Thanx to all viewer and helper Hi Guys Is it possible to combine the following to bits of code. The first code will send the user to the browser home page if using IE. Code:[[a href="about:home">home</a>]] The second code will send the user to the browser home page if using Firfox. Code:[[input type="button" onclick="if (window.home) window.home()" value="Home">]] Both codes work in their respective browsers, but can they be combind. As the man from Tesco's says "Every little helps". Regards, Dingbat Hello, I'm trying to build a simple API - it's running fine in Safari and Firefox but failing in IE and Opera. In order to isolate the problem I've stripped it right back 'til all the methods are just alerting their own name. Safari and Firefox give me loads of alerts, but in Opera and IE I just get one, LMSInitialize() when the page first loads - at least I know the browser is finding the API properly. IE also runs LMSCommit() and LMSFinish() when you close the browser window; that's good, but not enough. Opera doesn't even do that. The trigger for all this is a Flash movie created in Adobe Captivate, and published with a whole lot of its own JS which I can't touch - it's running in an iframe, and it's the parent window which includes the API. I need to work out whether there's an issue in my code, or if it's to do with the movie or the publication settings - that side of things is out of my control. Here's the full code of my test version of the API. I'd really appreciate any comments! Thanks, Ben Code: function SIScormAPI(){ this.version = '1.2'; this.LMSInitialize = LMSInitialize; this.LMSFinish = LMSFinish; this.LMSGetValue = LMSGetValue; this.LMSSetValue = LMSSetValue; this.LMSCommit = LMSCommit; this.LMSGetLastError = LMSGetLastError; this.LMSGetErrorString = LMSGetErrorString; this.LMSGetDiagnostic = LMSGetDiagnostic; } function LMSInitialize(){ var alertStr1 = 'LMSInitialize() - v.'+this.version; alert(alertStr1); } function LMSFinish(){ var alertStr2 = 'LMSFinish()'; alert(alertStr2); } function LMSGetValue(){ var alertStr3 = 'LMSGetValue()'; alert(alertStr3); } function LMSSetValue(){ var alertStr4 = 'LMSSetValue()'; alert(alertStr4); } function LMSCommit(){ var alertStr5 = 'LMSCommit()!!!!!'; alert(alertStr5); } function LMSGetLastError(){ var alertStr6 = 'LMSGetLastError()'; alert(alertStr6); } function LMSGetErrorString(){ var alertStr7 = 'LMSGetErrorString()'; alert(alertStr7); } function LMSGetDiagnostic(){ var alertStr8 = 'LMSGetDiagnostic()'; alert(alertStr8); } API = new SIScormAPI(); |