Keeping A Menubar On Top Of The Site

Jul 23, 2005

I was trying to "pin" a menubar to the top of a site. It should allways stay on its absolute position. Especially when the user scrolls the page...

I did like this:

<div id="object1" style="position:absolute; visibility:left:50px;
top:50px"> MENU </div>

called from a timer:

document.object1.style.top=50;
OR
window.document.object1.style.top=50;
OR
document.object1.top=50;
OR
window.document.object1.top=50;

none of them worked...now what?

View 4 Replies


ADVERTISEMENT

Jquery :: Slide Out Menubar ?

May 4, 2011

I came across a jquery slide out menubar here [url] . its a mouse over menu bar made with jquery . however i would like to know if the slide out can be brought out through a click rather than a mouse over .

Here is the source :

View 1 Replies View Related

Hide Toolbar, Menubar, Url Bar

Feb 21, 2006

I am designing a webpage that has a gallery. when i click on a pic in the gallery it opens up in a new page.

I dont want any toolbar, menubar, url bar etc to be on the page at all.
all i want is the pic.

any idea how i can prevent them from loading up. javascript or anything in the metatag i can try?

View 2 Replies View Related

Menubar And Slideshow Wont Work Together

Apr 5, 2011

I can get both to work separately. If Iput the slideshow below the menu bar in the body it does not play if I put the slideshow first the menu bar does not appear.

View 1 Replies View Related

Possible To Ignore Menubar Events Under IE And Safari (e.g.) Alt + E?

Mar 19, 2010

I want Alt + D to be captured and bubbling to be cancelled, So the browser does not process it. It should work with IE, FF, Sarari and Chrome browser.Problem:I am able to capture and cancel it and it perfectly works with FF and Chrome, however it seems like IE and safari always process menubar shortcuts, even if you have cancelled the bubbling and returned false.I am just wondering if anyone ever be able to cancel the menubar shortcuts under IE and Safari?

View 7 Replies View Related

Remove Menubar & Toolbars From Browser Window

Apr 4, 2006

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?

View 5 Replies View Related

Fireworks Created Menubar And Tables - Everything Works In Every Browser Except IE

Jun 24, 2009

I am quite new to page layout and I have an issue with a Fireworks created menubar and tables. First, everything works in every browser except IE. The menu drop down goes behind the table data. Also, the tooltip display in IE only shows partial image. [URL]

View 1 Replies View Related

Create A Popup Window In A Form Without Showing The Status, Menubar, Location And With Width Of 502 And Height 550?

Jul 7, 2003

How can I create a popup window in a form without showing the status, menubar, location and with width of 502 and height 550?

I was doing something like this, it will popup a window, but I do not want to show the status, menubar, location, etc. The form is submitted to other site.

<form action="http://www.otherdomain.com/preview.php" target="_blank">
<input type="text" name="value" size="20">
<input type="hidden" name= "1" value="1">
</form>

Any idea?

View 1 Replies View Related

Keeping Whitespace In ResponseText, Etc.

Aug 24, 2006

I'm trying to access the source of an HTML page with as few alterations
from the actual source (as in, that seen from the View Source option)
as I can. The method document.documentElement.innerHTML returns the
HTML source, but adds HEAD and other elements if they are absent from
the source, and takes out whitespace (i.e., line feeds, carriage
returns and tabs) within tags and between tags. The follow function:

function xhr() {

xhr = new XMLHttpRequest()
xhr.open("GET","test-page.html",true);
xhr.onreadystatechange = function() {
if (xhr.readyState==4) {
alert(xhr.responseText);
}
}
xhr.send(null)
}

doesn't add or alter any tags that are absent in the source, and does
not take out line feeds within tags; it does, however, still take out
all non-line-feed whitespace within tags and all whitespace in general
between tags.

It seems that preserving whitespace is all that I need, but I haven't
found a way to do that through my searches. So is there any way to get
the unaltered HTML source of a page without innerHTML or applets, like
a better version of the XMLHttpRequest object's responseText method?

View 3 Replies View Related

Keeping Pop-up On Top Of Parent Window

Mar 22, 2007

I am using a pre-built javascript DatePicker. It uses window.open to display
the Calendar and works fine if the user clicks on a link for a specific
date. The proper textbox in the parent window form is populated and the
DatePicker closes.

The problem is when a user clicks on the parent window, the datepicker is
hidden behind the parent window. Beleieve it or not, this creates a real
problem for many users.

Is there any way to put up an alert to the user and then set focus back to
the datepicker if the user clicks on the parent window by mistake?

In the datepicker.js there is a reference to the window created:

ggwindow = window.open(..parameters)

So I tried something like ggwindow.onblur=dont_close_me() referring to a
function that displays an Alert and then sets focus back to the datepicker
window. I know that onblur is an event and not a property or method of the
Window object, but I have also seen mentioned that the onblur event can be
applied to the Window object.

During window creation I don't see a way to set the onblur event for the
created window.

View 4 Replies View Related

JQuery :: Way To Use A Textarea For Keeping A Log?

May 17, 2010

I need to keep a log in a test application, so I'm using a textarea for that, and I'm appending text using the+= operator.Follows the trace function which fills the textarea:

window.trace = function(s) {
if ($('#enableLogCheckBox').attr("checked")) {
var logArea = $('#logArea')[0];

[code]....

View 1 Replies View Related

Keeping Variables Between Functions ?

Dec 13, 2009

I've noticed that if you declare a variable in one function, then call another function, the variables cannot be accessed in that function. Is there any way to get the value of a variable declared in a different function?

View 5 Replies View Related

Keeping Iframes From Loading

May 19, 2005

<pre>
<html>
<head>
<title>Snapitup Script</title>
<style type="text/css">
*{margin:0;padding:0;}
</style>
<script type="text/javascript">
/* script made by gmn17@hotmail.com &copy; 2005 free to use */
/* keep this script credit intact,thanx, a script to show/hide */
/* any html in IE Safari and Firefox, if you wish to preload */
/* just put it in the target, stripped out table and eval */
/* statements from 2 scripts and combined them, then altered */
/* part of a www.shawnolson.net script took eval statement out */
function snapitup(target,statement){
string = 'theTarget = document.getElementById("'+target+'");'
if(theTarget != null){
theTarget.innerHTML = statement;
}
var el=document.getElementById(target);
var theTarget=document.getElementById(target);
if(el.style.display!="none"){
el.style.display="none";
}else{
el.style.display="";
theTarget.innerHTML = statement;
}
}
/* use this to preload content */
function hideShow(target){
theTarget = 'document.getElementById("'+target+'");'
var el=document.getElementById(target);
var theTarget=document.getElementById(target);
if(el.style.display!="none"){
el.style.display="none";
}else{
el.style.display="";
}
}
</script>
</head>
<body>
<a href="#null" onclick="snapitup('row22','<iframe src=http://www.yahoo.com width=100% height=500px frameborder=none style=border:0></iframe>')">Category 1</a><br>
<a href="javascript:void(0);" onclick="hideShow(&#3933;')">Category 2</a><br>
<div id="33" width="100%" style="display:none;"><img src="tn_1_books.gif"></div>
<p id="row22" width="100%" style="display:none;"></p>
<a href="javascript:void(0);" onclick="snapitup('row11','<table id=nTable border=2 width=500 height=400 cellpadding=0 cellspacing=0><tr><td>Data One</td><td>Data Two</td><td>Data Three</td><td><a href=# class=button>More</a></td></tr></table>');">Category 3</a><br>
<div id="row11" width="100%" bgcolor="#b9b9b9" style="display:none;position:absolute;left:100px;top:100px;"></div>
</body>
</html>
</pre>

Ok first the bad, it will not work from a stylesheet, you have to use style="display:none" all over the place, I will try to fix that without adding more than 2 lines to the script somehow, I hope. you can not have line breaks in the innerHtml statements in your links(I think that's normal anyway). javascript:void(0); will not work for an iframe, you have to use #(or #null to keep from clicking up to the top of the page) for the hrefs, I don't know if that is a bad thing or not, there has to be something better than both of those options. now the good, if you do not have access to the head of a page, everything works from the body of a page. it is good for making ul/ol tags for a vertical menu without that complicated scripting having to differentiate ul/ol text and li links in those scripts for just a simple menu, the ecmascriptmenu is the only one that makes sense to me, hope he gets his server fixed. the script seems to work with or without a doctype in IE6 firefox and safari. people always wonder why I try to make these type of scripts, I usually maintain long lists of links so I like to provide small previews(iframes that do not load until clicked) for each link, the best part is that IE firefox and safari react to it flawlessly unlike most other types of scripting, one script had an eval statement that gave me tons of trouble taking it out and the other script I took out a server sql proprietary call to a rowid for a table and made almost any html element be a target(a p tag for instance).
here at :

View 9 Replies View Related

Keeping Users On Their Profile?

Dec 4, 2009

i have developed an application that allows users to post code on their profile on various social networks, and activate the application by submitting data via an html form from within their profile. the application works fine.the form action is processed on my server the problem is that after they submit the form, the users are directed to my website and the display of the results are presented on my website - at hxxp/xxxxxxxx.com/process.php.

i am trying to keep the users on their profile on their social network. i tried unsuccessfully using targret="_self" and target="_blank" as part of the code they are posting on their profile I am trying to figure out a way that they will not be directed back to my website.

here is the way the code posted on the users profile on their social network looks like:

<form action="hxxp://xxxxxxxx.com/process.php" method="post" name="process" target="_self">
<textarea name="somename" id="somename" rows="5" cols="5">blah blah

View 3 Replies View Related

Keeping The Submenu Visibly?

Apr 30, 2010

I have a menu with a horizontal submenu. What I want is for the submenu to stay active if the mainmenu link is activated... This I got so far. Now what I cant figure out is how to make the active submenu hide when hovering over the other mainmenu links... And show again when not hovering...

Here is what I have tryid so far:

Code CSS:
#navbar {
top: 0;
left: 0;

[code]...

Now this allmost does the part except hidding the active submenu when hovering...

View 2 Replies View Related

Keeping Values In A Form...

Feb 5, 2004

What I would like to achieve is that when a user goes back to the first page that his/her selection of the cities is still available. All items that have been selected are in the right hand box. This list is again empty when they return to this page via the "history.go(-1)" link.

The page is in dev status and in german, but it is very easy to understand, so it shouldn't be any problem for you guys. The javascript code can be seen in the source code on the first page. The left list is filled with a mySQL statement in the first place.

Of course I can to some PHP workaround by evaluating the submitted variables, but this would be much more work. I want to know if there is an easier approach? Code:

View 7 Replies View Related

Keeping Values In Status Bar

Jul 13, 2006

Is it possible to keep values in the status bar an then get them?

View 4 Replies View Related

Keeping A Div At The Bottom Of The Page?

Nov 8, 2010

On the iphone I can keep a object on the top of the page by using the following in a interval:

Code:
document.getElementById('object').style.top = window.pageYOffset+'px';

I cannot figure out how to keep it at the bottom (to replicate fixed positioning)

View 4 Replies View Related

Keeping Popup Window On Top When Reloaded

Jul 23, 2005

Here's my HTML code. What I'm trying to do is when the button is
pushed to refresh the popup window information, I want the popup to
return to the front. The way my code is now, when refreshed the popup
stays in the background confusing the users.....

View 2 Replies View Related

Keeping Focus On A Text Field

May 29, 2006

Assuming I have the functions, "isNumber" and "isEmpty", how would I write the HTML INPUT type="text" element such that a person cannot exit the element unless they have typed in a valid number (as defined by the function isNumber) or left the field empty (as defined by isEmpty)? Thus, if they have typed in "aaa" and then pressed "Tab" to go the next element, they'd get a warning message, and be returned to the old element?

Ideally, this solution would work for both the latest versions of Firefox and IE.

View 6 Replies View Related

JQuery :: Keeping Table Header Fix?

Sep 15, 2009

I'd like to know if there is a way to keep a table header fixed on top of a div while I scroll the table rows. I have a div high 200px and the table itself is around 300px so when I scroll down I'd like to always see the header on top. I already use for the table tablesorter so the solution must be
compatible with that plug-in.

View 14 Replies View Related

JQuery :: Keeping Track Of Checkboxes?

Nov 24, 2010

I have around 30 check boxes in a form and I need to keep track of their status if they are checked or not and based on that change the data in the dom.

I am stuck on the logic of how to implement or code for 30 check boxes. I was using the below example code but there will be a lot of if statements as I need to always know what their status is. Is there a better way I can manage so many check boxes ?

if($(this).is(":checked"))

View 2 Replies View Related

Keeping Track Of What Window Is Active

Jun 20, 2007

Right now, I have multiple draggable windows on my site. The problem is, that only the most recently created box is draggable and I clicking the other box doesn't work.

Where you can click and drag different boxes. The problem is I don't know how to implement this. When the two boxes are up and I click on one box, it completly ignores the other box. I realize in my code I need to update widget1 but I'm not entirely sure how I can do that. I call the method below using: document.onmousedown=selectMouse; in my javascript

If it helps, the windows are all contained in a <div> tag with the id 'closewid'
Each of the new windows that opens had the id "widget"+a number.


46 function selectMouse(e)
47 {
48 if(firefox)
49 {
50 var p=e.target;
51 if(p.attributes['id'] && p.attributes['id'].value=="titlebar")
52 {
53 //document.write(p.attributes[0].nodeValue);
54 isDrag=true;
55 x=e.clientX;
56 y=e.clientY;
57 tx=parseInt(document.getElementById('widget1').style.left);
58 ty=parseInt(document.getElementById('widget1').style.top);
59 }
60 }
61 else
62 {
63 var p=event.srcElement;
64 if(p.attributes['id'] && p.attributes['id'].value=="titlebar")
65 {
66 isDrag=true;
67 x=event.clientX;
68 y=event.clientY;
69 tx=parseInt(document.getElementById('widget1').style.left);
70 ty=parseInt(document.getElementById('widget1').style.top);
71 }
72 }
73 }

View 1 Replies View Related

Printing The Contents Of A Div - Keeping Styling?

Feb 7, 2010

I have a complex form and a 'Print' button which should print only the contents of a specific DIV. I am using the following function (i found on another forum):

function PrintContent() {
var DocumentContainer = document.getElementById('divName');
var WindowObject = window.open('', 'PrintWindow',

[code]....

While using this, the CSS styling of the DIV are missing.How can I print the DIV's contents and keep the CSS styling.Before using that function, I tried "execCommand("Print")" but the results weren't good at all. it printed only a small part of the content.

View 4 Replies View Related

Keeping An Iframe From Loading Outside Its Source

Aug 6, 2003

I need some code that prevents the contents of an iframe from loading outside their source. Namely, the page has its main text content in an iframe so it can be scrolled through while keeping fixed size layouts. That iframe points to a file, content.html, that I want to keep the user from loading directly in the browser. I'd like it so, if they do go to content.html directly, it will just boot them back to the main index.

View 2 Replies View Related

Keeping Users From Messing Up Entry

Jul 27, 2007

As you can see it adds a linebreak after each text is added. It is meant to creat a list to be output from a form. But a user can click inside the textarea end mess up the list and enter anyway they want.

How can I make sure that there is always a linebreak between each line of text?

<input size="20" id="inputtext">
<input name="add" value="Add" onclick="document.getElementById('textarea').value+='•'+inputtext.value+'

'" type="button">
<textarea rows="15" id="textarea" name="box" cols="22"></textarea>

I have considered the readonly option but I need users to be able to delete entries.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved