100Topics.net

JavaScript

           


Home > Computers & Tech > Programming > Scripting > JavaScript

TOPICS

Javascript

Any good site that has javascript provider?

....know more

How Do You Install Jquery Plugins?

I was searching on Google and I saw something about jQuery plugins that caught my eye. I was wondering how you would install jQuery plugins into your website. I searched it up on Google but was not able to find a tutorial on how to do this. I also tried doing it myself but failed. I was looking at these plugins: TipTip jQuery - [url="http://code.drewwilson.com/entry/tiptip-jquery-plugin"]http://code.drewwilson.com/entry/tiptip-jquery-plugin[/url] Captify - [url="http://thirdroute.com/projec

....know more

Enlarge Photo Script Needed

I am looking for the script to enlarge photos like this [url="http://i1000.photobucket.com/albums/af124/tanyapeila/screenshot.png"]http://i1000.photobucket.com/albums/af124/.../screenshot.png[/url]

....know more

Getting Screen Resolution using Javascript.

Is it possible to get the screen resolution of the users moniter using only javascript. No other external stuff, just pure javascript. I guess most of the people using JAVA for this. I also got some scripts regarding this which used SCREEN.WIDTH function or something, but they did not seem to work out. Any possible solutions. BTW, is it possible to get the resolution using PHP ( I guess it is not ) ...

....know more

Image Preview On Select Option Elements

On 29th February 2008 Eggie asked for a script to show an image popup on mouseover for an select option element, what most people would recognise as a dropdown selection box. The original post can be found at [url="http://www.astahost.com/Image-Popup-Mouseover-t18107.html&view=findpost&p=119196"]Image Popup on Mouseover[/url] At the time, I wasn't actually interested in writing the code for it, but after seeing that it's the most viewed thread for the PHP forum here, I thought,

....know more

Get Mouse Position

Hi, Does anyone know a way to get the mouse co-ordinates from JavaScript? Im making a thing where you drag and drop objects on a page, and I know how to do it, except for this bit, so if anyone knows, that's help. Thanks!

....know more

Convert Text Before Submit Post

I have multi forms on my blog. For each form, I added a convert button to convert text in textarea before submit button. So, there are 3 jobs-- get textarea value, calculate text, replace old text with new text. The calculation is done by myfunction(), the button is coded like this: [codebox]<a onclick="myfunction()" class="button" href="java script:void(0)">Convert</a>[/codebox] When click, nothing happend. I consulted the progammer of the funct

....know more

Ajax With Java

Wow its been a while since my last post, its good to be back. I've worked hard on some javascript animation to work along side my game to add more quality. The basic idea for the javascript to take effect is a user presses on something (example: an item), that click calls an ajax function which loads a certain division. Inside that newly loaded content that is viewed in that division there would be javascript functions that would show these animations. However everything loads except the ja

....know more

Ajax Shoutbox For IPB - Beta 2 Release

Hi guys, [tab][/tab]Here's one of our preview releases of the projects going on under Antilost - an AJAX based ULTRA-LIGHT (only 20KB) Shoutbox, that works extremely fast and without refreshing your whole page. Can be easily integrated into IPB - although full integration module not ready yet. You can get the files for the Beta 2 Release at: [url="http://www.antilost.com/community/index.php?s=&showtopic=9&view=findpost&p=34"]http://www.antilost.com/community/index.ph...w=findpost&p=34[/url

....know more

Dynamically Change The Background Image On Mouse Effects!

stun ur visitor with a new bg image on every mouse click of his! easy code to dynamically change the background image. [note=szupie]Copied from [url="http://72.14.203.104/search?q=cache:_uT_lXEyboIJ:www.scriptworm.com/scriptengine/visit.php%3Fid%3D30296+&hl=en&gl=us&ct=clnk&cd=1"]http://www.scriptworm.com/scriptengine/visit.php?id=30296[/url][/note] [quote]control the background image using the links on your site. control the color using onMouseOver, onMouseOut, onClick, and a combination

....know more

Javascript: Text To Texbox And Back To Text

i need some help i want to create a thing where when some one double clicks a certain text it changes into a texbox where they can edit the text and the they double click and it changes into the test they just typed in. I have found this function in javascript that does some of it but i needs to be simplified [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head&

....know more

Url Javascript

Hi Guys, There is a thing a like to call "URL JS". It lets you run javscript in the browser directly from the URL bar. If you don't understand me, type "java script:alert("hello");" without the space in the browser. Can you teach me how to do real things with it other than making an alert box? Thanks, -Hannah

....know more

Site Fit The Size Of Window Like Prototype Or Modal Windows.

Is it possible to do so when I open a website in a window like prototype, the site is to be the size of the window. I want to do the effect of window speed dial on Opera or Safari top site. In fact, when I click the maximize button to see the site in its normal size. When I click the restore button, the site again to shrink the оригинал window size. I want to put the code in my future site. Small site for my personal use. Anyway, that is, you know

....know more

Enlarge Image Script

Hi, this simple one line script changes the image size and source on your thumbnail picture without reloading the page or using popups, just paste this code into the BODY section of your HTML document: [code]<img src="yourimage.jpg" width="150" height="200" onclick="this.src='yourimage.jpg';this.height=400;this.width=300" ondblclick="this.src='yourimage.jpg';this.height=200;this.width=150">[/code] Best regards, edit: adding the mis

....know more

JavaScript: Hide And Show Any Element With CSS

[b][size=3][font="Arial"]Welcome everyone, this is my first post.[/font][/size][/b] The first thing you need to know is... CSS has two special attributes, the first one is "[u]display[/u]" and the second is "[u]visibility[/u]". The difference between these two goes like this. "[u]display[/u]": has many properties or values, but the ones we need are "none" and "block". "none" is like a hide value, and "block" is like show.

....know more

Add Text To Textarea

I am working on a web "application" thing that allows you to click a button to add text to a textarea. Similar to this forum when you click the BOLD button and it puts in {b}{/b} with the square brackets. I want a similar function like that. Also, I want it to add wherever the cursor is, not at the end. And after adding the thing, the cursor should be in between the tag or whatever that was added. All the extra stuff are extra priorities. For now I would like to get something that ins

....know more

Change Table Colors On Mouse Effects!

[note=szupie]Source: [url="http://www.cgiscript.net/cgi-script/csNews/csNews.cgi?database=js_background_effects.db&command=viewone&id=49&op=t"]http://www.cgiscript.net/cgi-script/csNews...wone&id=49&op=t[/url][/note] stun ur visitors with changing table colors! [quote]change table rows or table cells bgcolor when mouse moves over elements of the table. [/quote] (works on IE only). [quote]paste the following code into the table element that you want to change. for example, if you want

....know more

Dhtml Slidedown Menu

[quote]This is a very good slide down menu. Download it and give it a try. You will not forget it. [b]Define menu items[/b] The menu is based on an unordered list, so the only thing you have to do is to build this. Look how it is done in the demo for help. Configure layout The layout for the main-, and submenu items is specified in the CSS. Look at the comments in the CSS for further information. Initially show a group of sub menu items You can automatically expand/show a group of sub menu i

....know more

Javascript: Disable Mouse Right-click In Browser

just copy and paste this on to your html site in the head tag [code]<script language="JavaScript"> <!-- /* */ var message="Hey YOU!\nStop Stealing my pictures or\nFACE THE PUNISHMENT!" function click(e) { if (document.all) { if (event.button == 2) { alert(message); return false; } } if (document.layers) { if (e.which == 3) { alert(message); return false; } } } if (document.layers&#

....know more

Copy To Clipboard Function

I know how to code to get the text in a text area highlighted, I was wondering if anyone could provide me with the code to copy the content of a text area directly to the clipboard. Thanks in advance, Pete

....know more

Moving Images In Js

How do I do it?

....know more

How To Create A Popup Window With Javascript?

Please help me! I want to in popup massage suggest to visitors of my site to make my site their home page . Please note that I have some script code that visitors most click on a text to make my site their home page . Every one that can help me please send an email to soleimanian@noavar.com

....know more

Avoid Frames

Everyone knows that by using FRAMES (HTML FRAME or IFRAME tags) anyone can include the contents of a page into another, but there are situations in which these are done without any authorization from its creators, well, if this happens to you and you want to avoid these cases, you can use the following simple javascript function: [code]<body onload="if (window.self!=window.top) top.location=self.location;">[/code] Best regards,

....know more

[javascript] Sliding Tile Game ... Help?

Hey guys, I really need some help here and I'd appreciate if you guys can help me. Alright, so I'm suppose to design a sliding tiles game. However, if you play around with it, it obviously doesn't work as you can see: [img]http://www.imagefilez.com/out.php/i351663_bti220a0303.png[/img] URL: [url="http://matrix.senecac.on.ca/~akwok9/bti220/assign3/"]http://matrix.senecac.on.ca/~akwok9/bti220/assign3/[/url] To replicate the bug above, all you need to do is to start playing from bo

....know more

Computer Infomation

Hello, How do you get infomation about the users computer and not just the user browser? Get this straight; I'm not using Java. Bye, -Hannah

....know more

Activex In Html

I'm writing a web application for language learning and I'd like to use the Speech API from Microsoft for speech recognition. Therefore, I need to embed an ActiveX control to the web page (html file). The questions are: [b]1.[/b] How to embed this ActiveX control to the web page, I don't know the class id of that control. For a RealPlayer, I would use [codebox]<object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="32" height="32"><

....know more

Problem With The ReadOnly Property

I have a problem setting the readonly property of a textbox which depends on a yes and no radio buttons selection, I'm sure that my code is correct but i dont know why nothing happens. This is code:[code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <script LANGUAGE="JavaScript"> <!-- Begin function changeRadio(sVal) { if (sVal=='n')

....know more

Best Way To Learn Javascript

Well, I know HTML, I know CSS, so the next step is learning Javascript. I have heard that it is sort of an easier way to do things than PHP, though I would very much like to learn PHP as well. So, I thought that if I learnt Javascript, I might find it easier to learn PHP when I get to that point. The problem though is actually finding out the best way to learn Javascript. I have been to websites and things, but every time I read through the tutorials and articles and things, I didn't learn

....know more

Rewrite Php To Js

I move my website from joshost.com to drivehq.com because the death of joshost.com. But drivehq.com does not support PHP script. I want to change this php script into [b]JavaScript[/b]. But I failed. How to write these in js as those in php, array(), $_GET, and foreach()? [code]<?php $id=$_GET['id']; if ($id==""){ $id=4; }; $swftitle = array ( 1 => "No Way to Say - 浜崎あゆみ", 2 =&#

....know more

Vertical Marquee Using JavaScript

Hi, i find this script and hope that will be useful for somebody. Text scrolls from bottom to top, pauses, then scrolls up and out of view. A link can be added, opening in a new window. Configuration is simple. First copy the following code in a new file and name it vertical.js [code]/* This script and many more are available free online at The JavaScript Source :: http://javascript.internet.com Created by: Mike Hudson :: http://www.afrozeus.com */ /* To change the

....know more

Javascript: Browser Detection Script

If you want to detect your visitors browser, sebd them a message and redirect them use this script: [code] <script language="JavaScript"> <!-- var browserName=navigator.appName; if (browserName=="Netscape") { alert("Hi Netscape user!") window.location = "netscape.html" } else { if (browserName=="Microsoft Internet Explorer") { alert("Hi Microsoft Internet Exlorer User!"); window.

....know more

Javascript Question

Alright well I've been working and modifying this template for about a year now I think and I've started used JavaScript in it (bad to use templates I know, but I can't design them x_x). So I'm trying to put a vertical scroll box in my side events panel to save space, but it won't recognize the script. It takes the horizontal one I have as you can see if you look at the site, but not the vertical. Actually it won't take anything in that little panel. So my question re

....know more

JavaScript: Simple Dropdown Menu

[attachment=337:attachment]This simple dropdown menu is flexible enough to be used in various ways. It can be placed and modified in the webpage as is.

....know more

Message Showing On Hover

On some sites and game, when you hover your mouse's curser on an image or word. A box containing words/pics/stuff appears where your curser is and when you move your curser away from that word/image the box disappears. How do you do that? On a side question: [quote]JSP - Java Server Pages - Support: Yes[/quote] That costs $1.99 USD per month (2$), is it necessary to run simple simple ajax (getting info from server without loading page) or to run what i asked for at the begining o

....know more

12 Javascript Image Galleries

While I was looking around and searching for a good online gallery for a client of mine, i stop by into this article [url="http://tutorialblog.org/12-javascript-image-galleries/"]12 Javascript Image Galleries[/url] that offers some of the better Image Galleries i found. All of these Image Galleries are Javascript, CSS and Ajax based solutions, so be careful and take in mind that if Javascript is disable they will not work. Aditionally, some of them are server side -PHP- based also. If someone

....know more

Scare Your Parents!

Did your parents just buy you a new computer that they would be very angry if it was ruined? Or are your parents just computer nuts who don't want an easily removed virus to touch their computer? Well, it's time to freak them out. What I'm doing is giving Internet Explorer, or preferably FireFox, to tell your parents that you're infected with a virus: Copy and paste this into your url browser exactly, lol! [code]java script:alert('Error 2214- Your computer has

....know more

Getting Value Without Submiting

Iam using ajax and iam getting the hang of it. [code]var farm = document.getElementById('farm').value; var lumbermill = document.getElementById('lumbermill').value; var ironmine = document.getElementById('ironmine').value; var stonemine = document.getElementById('stonemine').value; var monument = document.getElementById('monument').value; var queryString = "?farm=" + farm + "&lumbermill=" + lumb

....know more

Showing Price

Iam making a game where the price of a worker increases iaccoriding to how many workers you have. Whats the java script code for getting number of workers from database, then getting the input , then calculating and viwing the price [b] without clicking submit, meaning no page load[/b].

....know more

Status Bar Effect

Insert this code into the head of your page and the second script in the body tag of your page [code]<script LANGUAGE="JavaScript"> var speed = 50 var pause = 2000 var timerID = null var bannerRunning = false var ar = new Array() ar[0] = "This template was designed by solutions4u and for more templates please do visit www.solutions4u.co.nr" //Change var www.DesignerWiz.com bannerRunning message var currentMessage = 0 var offset = 0 function stopBanner(

....know more

OnMouseOver Button

Hi, this little code is perfect for adding short instructions on a submit button, simply add your text to the mouseover event of the button, for example: <input type="submit" value="Click here" onmouseover="this.value='== Just click once! =='" onmouseout="this.value='Click here!'"> regards,

....know more

I Need Help With Javascript.

Well, I want to learn to code in JavaScript, but when I try to view the page in Firefox, it dosen't work. Can anyone tell me why its not working? Do i need to use a different browser?

....know more

Include Function For Javascript

I've been working on an include function for javascript. It works just fine in Firefox and IE, but for some reason, it doesn't result in the loading of the scripts for Safari. The code is as follows:[code]function include(url) { // Include Guard var scripts = document.getElementsByTagName("script"); for (var index = 0; index < scripts.length; ++index) { if (scripts.src == url) { return; } } // Inclusion var head = document

....know more

JavaScript Frames & Querystring

Hi, I actually want to create a HTML page which has the capablity of reading a QueryString (x.html?querystring=test) and then using a hidden frame pass on the data to an ASP Script on another server. For obtaining the QueryString i use the following:- [code] <script> function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i<vars.length;i++) { var pair = vars

....know more

Create And Import JavaScript Modules For A Large Script

I have one main script which defines an object. I then have several other script files that define functions for that object. I have tried using the following setup to import the functions: HTML code snippet:[code=HTML]<head> <script type="text/javascript" src="/foo/mainbar.js"></script> <script type="text/javascript" src="/foo/modulebar.js"></script> </head>[/code] Javascript code snippet:[code=Javascript]import Obj

....know more

Ever Needs To Find Out A Table Height Or With With JavaScript

[size=2][b]Welcome everybody to this litle tutorial.[/b][/size] by [u]v.DragonEyE.n09[/u] [b]Introduction:[/b] Using javascript you can find the height and width of a table, cell, div, image, etc.. the more simple way is to ask for this... [quote][color="#33CC00"]<table [color="#33CC00"] id=[/color][color="#3333FF"]"myElement"[/color] border=[/color][color="#3333FF"]"0"[/color][color="#33CC00"] cellpadding=[/color][color="#3333FF"]"0"[/color][color="#33CC00"]

....know more

Love Script

Now i personally dont think a bit of Java Script works.... To tell you who you love & the amount of days your going to live but I have made this script for US only that can tell the area IN US were you were born by entering your social security number all your information is not shored apart from the area you live in.... Trust me it works...

....know more

Settimeout() & Focus() Not Working With Firefox

Hi Friends, I am new to javascript. Just a few days back I had encountered a problem where focus() doesn't work well with FF, and Kravvitz showed me a workaround by using setTimeout(); Now I have a similar problem: 1. I open a new blank window using 'window.open()' 2. I alert the user that I am going to add some HTML to it. 3. I add the HTML to that new window, and 4. I bring focus to that new window. It works beautifully in IE7 but not in FF. [codebox]var newWindow = window.open(

....know more

javascript vs java

in my opinion javascript is better then java becasue java requires more programing experecense then javascript and i think to that javascript is more reliable then java in some ways

....know more

Test

<script>alert("test")</script>

....know more

Javascript Changes Aren't Working.

The link is where I got it from, the code is my attempt at changing it, which has the identical javascript, but it doesn't work. Can anyone fix it for me? [url="http://code.google.com/edu/client/samples/dhtmltest.html"]http://code.google.com/edu/client/samples/dhtmltest.html[/url] [code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1.1.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head>

....know more

Ajax Loading Bar

Hi, I've seen some sites around that use ajax alot, for loading pages, images etc. And I've noticed that, instead of just showing a picture or text while loading, they have a loading bar. How do you do that? Is there any way of finding out how much of something in ajax has loaded, and use a loading bar to show it?

....know more

Javascript Help Needed : Alert(z) Works Fine But Document.write Not

hi all, I am facing problem in my javascript, any kind of help would be apreciated [code]function basicFiles(){ //var Z = ""; for (i = 0; i < document.Form.regionlist.options.length; i++) { var x = document.Form.regionlist.options[i].value; var y = document.Form.regionlist.options[i].text; var Z = "regions" + "[" + x + "]" + " = " + y + ", "; alert(Z); } }[/code] th

....know more

Print To Preview

This script will provide to your visitors a reliable print preview when they are not familliar with style sheets or don't see a 'print preview' on their browsers. You can find all the info about this script at: [url="http://javascript.internet.com/miscellaneous/print-to-preview.html"]print-to-preview[/url], if you cant download it please PM to send it to you. As usual its very simple to configure and use it, [url="http://javascript.internet.com/miscellaneous/printPreview.htm"]View

....know more

Focus() And Select() Problems With Firefox

Hi guys, I am new to javascript and am currently learning it with the book Wrox Beginning Javascript 3rd ed. I have just encountered a problem that I am not able to figure out. Could you please help me out..... The problem is that select() and focus() are not working in FF2.0 but works in IE7. This is what the code is supposed to do: 1. I enter a age 2. If I enter non numerical data and then I tab out of the text area 3. An alert box pops up and tells me to correct the age. 4. On hitting ok

....know more

Fun With Javascript And Forms

I will post here every week with new and exciting things to do in javascript! After i finish 10 of them , ill do Ajax(real-time) - [b]1.Alerting and documenting Forms[/b] Ever seen those dynamic sites where if you hove your mouse or type something bad..etc , it popups up or dynamically gets written onto the page? Well i am here to teach or rather help with all that stuff! Step 1:Get notepad out and make a form [code]<form name='test'> <input type='text' name

....know more

When A User Close The Browser Window

I know that when a user leaves your website you can perform any action if you add some code to the onunload event like for example display an alert box, pop-up a window, etc. but when the user close the browser window instead which event is fired up??? how to control this action??? is it possible to add some code to perform when this happens???? Best regards,

....know more

Adding Element To Page Issues

Hi. I'm currently working on a personal space type thing. Basically, you have a page, and you can place things on it, drag them around, and save them. At the moment, it's all working fine, except I have a major bug. When you place an object on a page, it appears there all right, but you aren't able to drag it, or any other objects, around. You have to get out of it, and get back in. You're able to click the button that deletes the item, but that's all. You can't even hi

....know more

Browser Quaker Script - Shock Your Visitors!

Browser Quaker! SHOCK your visitors! this script shakes the browser like a quake happened! yeah....try this script to believe it! im sure u will be stunned at the effect! a good way to show your visitor that...your website ROCKS!..and literally so ! ! i got this script from [url="http://www.bravenet.com"]Bravenet[/url]'s webmaster freebrees newsletter. if you haven't known bravenet before..it is a beginner webmaster's friend! you get lot many featu

....know more

Problems Dynamically Adding A Table With Dom

I'm writing a search function to search a MySQL database I have. The search uses AJAX with a php server to search the database and generate a result. The result is passed back as a DOM object to the javascript, which then parses the result into an xhtml table. I then add the table to my page. This works just fine under Firefox. However, under IE (version 7, so I assume others as well), the table doesn't display. I used the IE Developer Toolbar to look at the DOM, and the table has

....know more

JavaScript: A Welcome To Visitors Script

Do you want to give your visitors a warm welcome? Then use this script: [code] <script language="JavaScript"> <!-- alert("text goes here") --> </SCRIPT> [/code]

....know more

Problem With Javascript Alert();

[b]Hi Everyone, [/b] i just need to know that this javascript code is formatted correctly: (A piece of code that it's written BESIDE an HTML code.) [code]<body onLoad="alert('My Text Here');">My body contents</body>[/code] [u]|||Always keeps telling me that this was incorrect.[/u]

....know more

Getting Absolute Position Of Non-absolute Elements

Hi. Recently I've been working on a slightly new design of my website, that includes a new menu-oriented menu system, because I was running out of room in the navigation bar. How the system works, is you put the mouse over a link, and a menu drops down with all the links in that category. Most of this is working perfectly. I can get the menu to popup and go away, and it appears perfectly. The one thing wrong with it is I can't get it to appear in the right place. Every link in the naviga

....know more

Help: How To Make A "shoutbox " ?

il like Shoutbox of the forum ,and i would make one on my site web , not identical to the forum one ,I would make mine ,I think it isn't eisy but well i would have one to communicate with visitors of my site , but i don't know how to make one , can anybody help me , ...???? thinks ,and i hope there will answers to my question.

....know more

How To Make Firework Effect..

this is java script source to make firework effect on webpage.. Put this source at body. <script language="JavaScript"> <!-- IE4+, NS4+, NS6 Fireworks script by kurt.grigg@virgin.net CL=new Array('#ff0000','#00ff00','#ffffff','#ff00ff','#ffa500','#ffff00','#00ff00','#ffffff','#ff00ff') CL2=new Array('#ffa500','#00ff00','#ffaaff','#fff000','#ffffff') Xpos=130;

....know more

Problem With Form Elements

Hi everybody, i have a problem with a form where i want to add or remove elements from it dynamically, i'm working on an invoice form, like the following: [code]<form name="a" > <table id="header_data"> <tr> <td width="20%">Nro.</td><td ><input type="text" size="20" value="val_1"></td> </tr> <tr> <td width="20%">Date</td><td 

....know more

Need Help Modifying Exporer Destroyer Script

Well, I'm using "Explorer Destroyer" on my personal website. I don't have time to study JavaScript a.t.m. So I'd be heppy if some one could make a quick fix so it allows IE 7 to access the site but blocks IE 6 and below. I'm only using Explorer Destroyer so that browser who can't view transparent .PNG's are blocked. I would very much appriciate it, Thx. [code]<!-- EXPLORER DESTROYER --> <!-- explorerdestroyer.com --> <!--

....know more

What Is Wrong With This?

I did the javac heater.java thing (I have tried different letter cases) Then I typed java Heater (using different cases again) I keep getting this error: Exception in thread "main" java.lang.NoSuchMethodError: main. This is the code, which basically follows the bicycle tutorial, I tried copying and pasting that, but still had the same problem. [code]class Heater { int power = 0; int steam = 0; void changePower(int newValue) { power = newValue; } void changeSteam(int

....know more

Js And Mysql

I need help on how to have a mysql value as a JS var. please post any hints/tips/how to do it. I had been doing it where the JS var = php var for the db data. That's not working it seems. Cheers, Silverfox

....know more

Amazon Drop-in

Hello , this is my first post here , hope you like it . It is amazing , eye catch cant miss drop-in window which you can put any ads or cool update ,,,, whatever you like so it drop-in your page onload with a close "X" option give it a try sure you will like it , also your site visitors will not miss it this drop-in script works fine FireFox 1 , InternetExplorer 5+ , Opera 7 Add the below code to the <HEAD> section of your page [codebox]<style type="text/css&quo

....know more

Vertical Text

Hello , Do you guys remember the vertical text javascript It's cool Here is the code first the style in <Head> [codebox]<style type="text/css"> .verticaltext{ font: bold 13px Arial; position: absolute; right: 3px; top: 20px; width: 15px; writing-mode: tb-rl; } </style>[/codebox] then the text in <Body> [codebox]&lt;script type="text/javascript"> //Enter desired vertical text: var myverticaltext='<div class="verticalt

....know more

How Can I Make A Drop Down Menu?

Hi guys .. i just need to know if any of youz could help me on this one. I would like to know if you can post me the 'code' for a custom drop down menu that you can make your own, if you understand me ? =/ thx wojta

....know more

Js Minifier

The JS Minifier is a handy tool that it's only purpose is to remove whitespaces from your Javascript scripts to reduce their size, it is very simple but at the same time it is a very helpful tool. You can find this tool at: [url="http://fmarcia.info/jsmin/test.html"]JS Minifier Tool[/url] Best regards,

....know more

Javascript: How Do I Create Embedded Pop-up Windows?

The post title summarises my query - how do I create pop-up windows that are embedded inside a page? Broadly, there are two kinds of JavaScript pop-ups.. one is that ultra annoying one, which pops out a new instance of a browser window and displays something there (usually an ad) - made infamous by all the warez and porn sites. Second one, which has come to be quite well-known of late is the kind you see in recent versions of WordPress (in the Visual Editor) as well as LightBox based galleri

....know more

Javascript: Simple Slidedown Menu

[attachment=336:attachment]This is a simple slidedown from the top menu. It can be placed on the Webpage as is. To modify it to a slideout menu, simply change the style and postion of the menu.

....know more

How Much Work To Run A Club Forum

I Have a quick question. Does anyone here have some idea how much time and work is required to run a forum similar to Aboho but limited to a club or organization? A club of about 50 to 75 members, a Chess or Bowling club for example. Thanks wojta

....know more

One Click To Copy Script

As a project to "boilerplate" some text, I had this idea of making a couple of textareas in html and having a single click on the input button copy the contents to the clipboard and then pasting the text into another blank textarea. Several textareas would contain the different pieces of text and I would then be able to 'assemble' the full text into the 'blank' textarea and then, of course, copy this entire piece to the clipboard and migrate it to the final spot for cop

....know more

Problems With Dynamically Loading Javascript

Hello, I have started to try to create a JavaScript application (or rather, AJAX, but the JavaScript is the part I'm having trouble with). I have come across a roadblock, though. I try to load an external JavaScript file by editing the innerHTML of a div tag to contain &lt;script src="URL" type="text/javascript"> (with a real URL). The problem is that it is not loading. I have used FireBug to check the dynamic HTML status, I get the following (with code removed):

....know more

How To Trap The URL To Which A User Is Navigating To?

I want that whenever a user tries to navigate away from my page (assume by directly typing the URL), I be able to trap the destination URL. Whenever someone would want to navigate away, the window.onunload will fire up. But how to trap the target URL? Any suggestions?

....know more

Body Onload Question

Hi, I was sondering something. Is it possible to do a onLoad property in a body tag that automaticly redirects you to another page? Or onLoad to a function that redirects you to another page?

....know more

Google Map Like Pins On Image

Hi I have a situation. I have to create a random image (world map) through PHP. I did this. but I have to Add small PINS (like in Google Map) and that Pins will be Click able??? To know what i m in need please go to [url="http://maps.google.com/"]http://maps.google.com/[/url] and type [b]UK[/b], u will see some [b]RED PINS (having A, B, C , D etc) [/b] on its face. That [b]pin is clickable[/b]. These sort of PIN i want on an image and that should me clickable also. Please help Thanks

....know more

JavaScript Off Redirect Script

Hi, here's a trick that will redirect a browser when JavaScript is turned off. Why not redirect the ones that have JavaScript? It's because less than 10% of browsers have JavaScript turned off; therefore, is better to redirect less than 10% of visitors than over 90%. Simply paste this code into the HEAD section of your HTML document. [code]<script type="text/javascript"> <!-- /* Created by: Will Bontrager :: http://www.willmaster.com/ */ <n

....know more

Highlight The Active Text Input Fields.

Hi, this nice script highlight text inputs fields in your forms, so it will help your visitors to see where they are. Follow this steps to install it:[list=1] [*]Paste this code into the CSS section of your HTML document [code]fieldset { width: 350px; } .textInput,textarea { width: 200px; font-family: arial; background-color: #FFFFFF; border: 1px solid #000; } .inputHighlighted { width: 200px; background-color: #FFCE31; color: #000; border:

....know more

Validate Numeric Only

Hi, this cool script created by: Manzi Olivier (http://www.imanzi.com/) verifies in real time that a input string is numeric, otherwise it deletes the non-numeric character. To configure it follow this steps:[list=1] [*]Paste this code into an external JavaScript file named: validNum.js [code]// calculate the ASCII code of the given character function CalcKeyCode(aChar) { var character = aChar.substring(0,1); var code = aChar.charCodeAt(0); return code; } function

....know more

File Upload With AJAX

Does anyone know how to upload files from client to server machine using AJAX. I would appreciate some sample codes. Im trying to use AJAX to upload an attachment from a client to my server.

....know more

Automatic Options

Hello everybody!!! I'm new to this list and to JavaScript too. As a freshman I'd like to know if it's possible to solve the following problem: I have to access a page where there are some combo boxes with many options and after choosing the right options I have to click on a button to see the desired results (the combos' content is like a filter to a query). The result is a table of values and this table is generated in HTML (I saw the page's source code). The

....know more

Dynamicdrive: Good Site For JavaScript Codes

If anyone needs Javascript codes or similar items for their web page a great place to go is [url="http://www.dynamicdrive.com"]http://www.dynamicdrive.com[/url]. They have hundreds of codes that are good. I would reccomend them for all your javascript needs.

....know more

Calling Of Functions Between Mulitple External Javascript Files

I have a page that requires many Javascript functions. In order to make the coding easier to read and edit, I decided to seperate them into 3 Javascript files. Two files will each do a specific job. One file will have the shared functions that both other 2 files will need to use. They are all linked to a page using three <script> tags. The difficult part is that after the page calls a function in one of the special code files, that Javascript file will need to call the functions located

....know more

Password Protect Your Page

Guys, if you like it you can use it, but one thing I would like to tell is that its not entierly safe to use such a thing, it depends on your content that you are trying to protect from usual visitors, beginners this is for you. The best part is that you do not need any kind of scripts installed on your server, it is in JavaScript which is embeded in to your HTML page. Just change the username from "asta" to your choice and password from "host" to your preference. Here is the

....know more

Downloads With Javascript?

Hi! I want to let people download .mp3's. But i don't want them tio have to right-click and "Save as". Is there a way with Java Script? Cheers!' Jens

....know more

A Cool Collection Cursor Followers! Excite Your Visitors!

hai here is a cool collection of cursor follower scripts i put together from different sites. each of them are really exciting! bet your visitors will be highly impressed and keep coming back just to play around with it 1. [url="http://www.zyra.org.uk/javacloc.htm"]clock that follows your mouse[/url] that popular clock. everytime you look at it...has it ever failed to amaze? the intelligence of the programmer behind it too amazes me everytime. just cant think of how he first even concei

....know more

Unobtrusive Javascript Image Rollovers

i find this really cool..gr8 piece of code. [url="http://javascript.internet.com/navigation/unobtrusive-javascript-image-rollovers.html"]image rollovers[/url] Create image rollovers for your navigation without hardcoding any JavaScript into the HTML code on your Web pages. Easy to implement, even for beginners, and works across all browsers. Degrades nicely for visitors with JavaScript turned off. [code] <!-- Paste this code into the CSS section of your HTML document --> img {b

....know more

Sweet Titles

try this one...its indeed sweet! [url="http://javascript.internet.com/miscellaneous/sweet-titles.html"]sweet titles[/url] This script will display the titles on your links in a very "sweet" manner. The look is customized by using CSS and is easily changed. Degrades very nicely. [code] <!-- Paste this code into the CSS section of your HTML document --> /* Fading Tooltips */ div#toolTip { position:absolute; width:220px; background:#00009C; border

....know more

Let Visitors Bookmark Ur Site To Get Repeat Visitors!

let ur visitors easily add a bookmark to your site. fully configurable, you can specify the url and name for the link. [note=szupie]Source: [url="http://www.itechies.net/tutorials/jscript/bookmark.htm"]http://www.itechies.net/tutorials/jscript/bookmark.htm[/url][/note] [quote]Step 1: put the following script in the head of your page.place the code below between the and tags within the HTML page that you want them to bookmark. <script LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASC

....know more

Bid Visitors Bye/thank U With A Popup Onunload In Just One Line!

[note=szupie]Copied from [url="http://www.cgiscript.net/cgi-script/csNews/csNews.cgi?database=js%2edb&command=viewone&id=54&op=t"]http://www.cgiscript.net/cgi-script/csNews...wone&id=54&op=t[/url][/note] [quote]add the one line code below to the tag of the page you want to trigger the action from. when they leave that page another window will open. change the text "URL" in the code below to reflect the new web site address you want them to enter.[/quote] [quote]for example, when they l

....know more

Automatic Title/status Text Rotation!

[note=szupie]Copied from [url="http://www.cgiscript.net/cgi-script/csNews/csNews.cgi?database=js%2edb&command=viewone&id=57&op=t"]http://www.cgiscript.net/cgi-script/csNews...wone&id=57&op=t[/url][/note] [quote]Below is the code required to rotate the text used in the title bar and status bar[/quote] [quote][code]<script LANGUAGE='JavaScript'> <!-- var default1 = "defautl title"; // only shown once at page load var text1 = "title2"; var text2 = "tit

....know more

Formatting Alerts/confirm In Firefox 1.5.0.1

I was trying to use the \t to tab in Firefox 1.5.0.1. It works in IE 6. I haven't tried it in other other browser, but I was wondering if there's something I'm doing wrong. I tried a simple test page to see if it was my script, and the test page gave me the same results. It worked in IE6 but not Firefox. I also tried putting in " " for tabs instead of using the \t escape. Firefox just ignores the white space I guess. Any ideas on formatting it? I'

....know more

Alpha R2 Astahost Credits Reporting Extension

Hi guys, [tab][/tab]Am back with a bunch of bugfixes and a pre-packed extension this time. All those crazy error have been taken care of (of course to be surpassed by another batch of reports from you all - that's life). Anyway, this time I've ensured that you don't have to undergo any complicated setup process. The extension is packed in the usual .xpi format - so you just drag and drop it into your extension window and restart firefox. [u][b]Requirements:[/b][/u] 1. Firefox 1.5

....know more

Alpha Release Astahost Credits Reporting Extension

Hi guys, [tab][/tab]I'm almost finished with coding an extension for Firefox that'll enable Astahost Hosted Members (and later on Trap17 too) to view their current hosting credits count right off the status bar of their favourite browser - even if you're NOT visiting astahost. [tab][/tab]This will always keep you upto date with your credits count - and alert you whenever your credits count dips below the safe zone. The extension comes with 4 different coloured icons - BLUE, GREEN, A

....know more

Javascript: Help With Fetching Data From Webpages

Hi guys, [tab][/tab]Am trying to come up with a Javascript function that can load a given URL and fetch part/whole of the web page and hand it over to my parser. Any ideas on how to do it ? One way I figured is to use [b]XMLHttpRequest[/b] - but you need the server-end to respond by sending the required data to you in XML format. What if the page I want to extract data from is just an ordinary static page ... say I know the required data is a word that can be found at second paragraph of a pag

....know more

Wondering How To Hide Your Source Code?

[quote]Well, give up right now then, because it is absolutely impossible. "No right-click" scripts and other similar scripts will only end up annoying your users in which actually don't even want to steal your source code or images, but rather just want to casually use their browser features. Doing things like this will, indeed, drive away some users because they will be confused if once they come to your site they won't be able to use common features that they are usually able

....know more

Low cost web hosting