Insert A Code That Shows How Many Users Are Viewing Your Page?

Jun 20, 2004

just wanted to know if there is a way to insert a code that shows how many users are viewing your page using javascript? i.e. 3 Users Online

View 4 Replies


ADVERTISEMENT

Code - Redirect All Of The IE Users To My Blog Instead Of My Main Page

Nov 23, 2010

I am looking for some code to redirect all of the IE users to my blog instead of my main page.

View 14 Replies View Related

Viewing Javascript Generated Html Code

Jul 20, 2005

I was wondering if there was a way to view the html code that javascript
produced since viewing the source code shows the javascript if statements
for netcrape and IE etc.

View 1 Replies View Related

Disable Visitors From Viewing Web Source Code?

Nov 28, 2003

are there any scripts on the web that could disable visitors from viewing my web source code? (can java script do this? if not any recommendations?)

View 14 Replies View Related

Insert An Audio Recorder Into Website For Users?

Oct 12, 2011

I have a project that aim to allow people who participate in the charity to record their experience in helping children in various poor countries. In order to make it more convenient, I am hoping to put this audio recorder that will enable users to record --> stored in my data base --> show to public in a forum link structure!

View 1 Replies View Related

Insert A Link Using ExecCommand That Prompts Users For A Title First?

Apr 7, 2009

I am having a problem with my wysiwyg editor for my site, users dont like the fact that you have to select text before you create a link and I was wondering if it was possible to prompt the user to add title text before you use the execCommand('createlink') and use that has the select text that they made from the prompt. Instead of the old way where you must select text first to use execCommand('createlink') to create a link. kind of like Sitepoint's insert link function but instead prompts the user for the title and doesn't insert bbcode but a anchor tag?

View 7 Replies View Related

Redirect My Page To The EXACT Same Page The User Is Viewing

Mar 9, 2010

I want to redirect my page to the EXACT same page the user is viewing. Kinda like window.location.refresh(), but it refreshes the page, means it empties some part of the cache and will reload images. I want it to simply open the page again, exactly like when I click a link refering to the same url. I've tried reload(), but it doesn't reload either.

window.location.reload();
window.location.refresh();
window.location = '';
window.location.href = window.location.href;

View 2 Replies View Related

JQuery :: Have The Accordian Closed When First Viewing The Page

Sep 15, 2009

im using some accordian jquery code and the accoridian is open when i view the page.... is there anyway i can have it closed and i can click to open it

im using this code:

window.addEvent('domready', function() {
var status = {
'true': 'open',
'false': 'close'

[Code].....

View 2 Replies View Related

Code A Feature For Website Using DHTML Where The Person Viewing The Website?

Dec 29, 2005

I'm trying to code a feature for my website using DHTML where the person viewing the website can rotate between viewing the positive/negative points of the website being reviewed. This example was in the publication called Using HTML 4 by Lee Anne Phillips. Code:

View 5 Replies View Related

Code Which Shows A Div And Then On Click It Hides The Div?

Apr 15, 2010

I have simple code which shows a div and then on click it hides the div but its not working:

Code:
hidediv(divID)
{

[code]....

View 4 Replies View Related

Should I Code For Users Without Javascript?

Oct 2, 2005

Should I code for users without javascript? I don't know of anybody who doesn't have javascript turned on, but I have seen stats that say users without javascript run as high as 10%. I went to music.yahoo.com, I saw that they didn't code for no-javascript users, leading me to believe the no-javascript is a highly rare group.

View 12 Replies View Related

Code To Menu Which Shows And Hides Divs?

Jun 27, 2010

I'm trying to code a menu which when clicking say the 'news' button, a div will appear to the right containing the news, if you then click the button below, say 'information', the news div will be replaced by the 'information' div. I can figure out how to make a single menu item show and hide a div, but I can't for the life of me figure out how to do it for a whole menu.

View 11 Replies View Related

Need A Few IE7 Users To Test My Popup Code.

Dec 24, 2006

My popup code doesn't appear to work with Internet Explorer 7 and before I
spend time bug hunting I would appreciate it if a few IE7 users could visit
my site and confirm if the code doesn't work for them too.

Visit www.microbuild.com and in the top right hand corner you will see three
buttons for Online Support, Email Us and Call Us. Just click any one of
those three buttons then let me know if the popup was successfully opened
using Internet Explorer 7.

View 2 Replies View Related

Insert Comma In A New Window Code?

Mar 12, 2010

I have this javascript code:

<a href="javascript: newWindow =openWin('abc.asp?testid=A123&name=Hello,World:,check1,check2,and,check3', 'Affidavit', 'width=600,height=420,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=1 '); newWindow.focus()">Name</a>

The commas in the (Hello,World:,check1,check2,and,check3') part of the code are inserting a space between the words. But I also want to insert comma between check1, check2, and check3. I have tried the html ascii code for comma that is ",". I also tried the escape sign (as below. None of these codes worked. Does anyone have any tips?

[Code]...

View 1 Replies View Related

Simple Search-type Page To Enable Users To Input A Model Number And Its Page Appears In A Inline Frame?

May 6, 2009

I am using a very simple search-type page to enable users to input a model number and its page appears in a inline frame. Its not a true search as it is simply relying on a person entering the correct html page name to find it. But this works perfectly in my application.The problem I have is that I cannot get the type box to accept enter key as a submitt, only a click of the mouse will submitt the request. If enter is pressed the box loses the users input but no action is taken.I think this may be a javascript issue. I have posted the code below.

[CODE]
<html>
<head>

[code]....

View 2 Replies View Related

Insert Random Number Into Banner Code

Nov 13, 2000

I was wondering if anyone could help me with the javascript code that inserts a random number into the banner code. I had an example a month ago that worked, I stopped using it for a while, and now the forum I had gotten it from has deleted that post. I've tried to take other examples and make my own, but the banner doesn't display correctly. I'm not sure what I'm doing! Code:

View 4 Replies View Related

Insert Bbc Code Around Selected Text In A Textbox?

Aug 9, 2009

How would I insert bbc code around selected text in a textbox like it is in this forum?

View 1 Replies View Related

Insert Script Tag Or Code While Child Frame Loads?

Apr 28, 2010

I have a frameset page that creates several subframes. Does anyone know how to inject the script tag or some js code into the child window before loading of the child frame begins? The reason is to make the pages back-compatible with another system without changing a lot of code. If I can inject the script before the page loads, then it will handle the compatibility issues.

I've successfully injected the code into the child frames by using:
frames.childName.window.eval.call(frames.child_name.window, myCode);

And the functions are available to the child frame after it loads, but the code needs to be available to the child frame before/while it is loading.

[Code]...

View 2 Replies View Related

Page Slide Shows

Aug 21, 2001

I've been looking without success for a slide show program that will rotate web pages as opposed to just images. Am I best off just using a banner rotation script or is there something out there that is available for that purpose. The wish list is for a full page rotation ( the page uses SSI) possible fading of images in IE and being able to vary the time of each image. Asking alot?

View 2 Replies View Related

Button Shows Multiple Times In One Page

Jul 23, 2005

I have a javascript that displays couple of buttons, which are
directional (e.g., click button it goes to a particular page). I need
to have these buttons shows up multiple times in same page, each
represent a different direction but buttons themself are from the same
gif file. What's the most effecient way to do this?

View 1 Replies View Related

Drip Shows Leak On An Empty Page?

Dec 11, 2006

I'm using Drip 0.5 to test for a memory leak in some code. After reducing
the page down bit by bit to find the leak, I ended up with an empty page
that still leaked!

The page source is exactly this:

<html>
<head><title></title></head>
<body></body>
</html>

It doesn't leak the same amount each page load - sometimes it's 8192,
sometimes it's 16384, sometimes even reducing the memory load. But the
overall trend is an upward movement. I let it run for 10 minutes and it
leaked almost 10MB, so it's about 1MB/min.

This is not a serious leak, but it's making it harder to know if a leak is
caused by the js code or this other thing going on.

Has anyone else run into this? Any ideas what the problem is? I've shut down
all processes, removed all IE add-ons, etc, but no change.

View 1 Replies View Related

Prevent Page Scrolling Up When Calendar Shows?

Sep 7, 2010

I am using the following code from this site.

but for some reason if the page is long the whole page scrolls up so the top of the calendar is at the top of the browser, which actually hides the box that the date will end up in.

can anyone see how I can alter the code so that the page does not scroll up, but have the calendar show just below the box that the date will go in and the page does not scroll?

here is the full code that I am using to test this out with. code...

View 1 Replies View Related

Create A Way For Users To Download Code Dynamically From Webpage Via A File Download?

Oct 2, 2011

I am trying to create a way for my users to download some code dynamically from my web page via a file download. Below is the code that i have written so far. It seems to be dying on the iframe but i'm not sure why.

Here is my jquery trigger which is inside my onreadystate function.

$('#export_txt').click(function(e){
alert(LPAjax.ajaxurl + "/download.php");
$.generateFile({
action: "download_txt",
filename: "exportme.txt",

[Code]...

View 1 Replies View Related

Disable Users Downloading Page

Sep 25, 2010

how to disable users from downloading the page?? (clicking 'save page as'.. and then error)

View 4 Replies View Related

Relating A Page To A Users Monitor

Feb 25, 2003

I have a site up and running called www.kalahari.co.za which points to www.kalahari-adventures.co.za As the business depends on adventurous people seeing images of the place, the bigger the better. So I have designed the site to show one static background pic to each page. I sorted out a problem of different browsers by have a hidden index page that looks at the monitor a viewer has and decides that if you have a 1024 x 768 monitor it then opens a page index1024.htm that has the appropriately sized background pic.

Now I said to my client he would get better search engine ratings if we created 3 sites and the existing site is spread over those sites. Anyway I have done all that only to discover from High Rankings Advisor (highrankings.com that search engines have now cottoned onto this (competitors complaining I suppose). But I'm going ahead anyway.

My problem is that I have put all my keywords and descriptions on the 1024 pages. But if a person sees that page in a search engine clickt to view it and has a 800 x 600 monitor then my script is not going to work.

I have tried putting my index page script onto all the pages (see script below), but when I open a unique page it looks for the index page in the folder where that doc is situated. I suppose a quick and dirty would be to direct the viewer back to the index page which will then activates the scrpt (see below) that checks for the right monitor size.

I would prefer the viewer to stay on page. So If someone who knows Javascript can rewrite the script so that A) it looks at the name of the page. And B) once it sees that page's name it has to then look for that same page in the appropriate folder and open that page. (folders are docs800, docs1024 and docs1624)

The problem is that I can't have the same index page script because at the moment if the script is on the page I am trying to open, it loops forever.

How do I sort this out?

This is the present script on the index page.

<script language="JavaScript">
<!--// hide bad old browsers
var s800x600page = "index800.htm";
var s1024x768page = "index1024.htm";
var s1152x864page = "index1264.htm";
var s1280x720page = "index1264.htm";
var s1280x960page = "index1264.htm";
var s1280x1024page = "index1264.htm";
var pagetype;
if ((screen.height == 600) && (screen.width == 800)) { pagetype = 2; }
else if ((screen.height == 768) && (screen.width == 1024)) { pagetype = 3; }
else if ((screen.height == 864) && (screen.width == 1152)) { pagetype = 4; }
else if ((screen.height == 720) && (screen.width == 1280)) { pagetype = 4; }
else if ((screen.height == 960) && (screen.width == 1280)) { pagetype = 4; }
else if ((screen.height == 1024) && (screen.width == 1280)) { pagetype = 4; }
else { pagetype = 2; }
if (pagetype == 2) { window.location.href = s800x600page }
else if (pagetype == 3) { window.location.href = s1024x768page }
else if (pagetype == 4) { window.location.href = s1152x864page }
else if (pagetype == 4) { window.location.href = s1280x720page }
else if (pagetype == 4) { window.location.href = s1280x960page }
else if (pagetype == 4) { window.location.href = s1280x1024page }
//-->
</script>

I design but programming is still in my dreams ...

View 9 Replies View Related

JQuery :: Hiding A Div On Page Load But It Shows For A Split Second?

Jan 13, 2010

I have a div which will show when javascript is disabled, and I turn it off using:

$(document).ready(function(){
$("#noscript").hide()
});

However, it is appearing ont the page in Firefox for a split second when the page loads. Is there a way to stop this? The site is on localhost at the moment but I can easily upload it if need be.

View 3 Replies View Related







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