no there is no method to do this. But im pretty sure you could override the JProgressBar class to do what you want it to. As of tutorials for this online im unsure where to point you.
~s.o.s~ commented: Good advice for beginners. +18
no there is no method to do this. But im pretty sure you could override the JProgressBar class to do what you want it to. As of tutorials for this online im unsure where to point you.
Its nt a html file linking wit a button in flash but what i did is; i created diff pages all in flash den combined dem in one page on different frames den i wrote the codings as below:
actions.gotoAndStop ("about");
about_btn.onRelease = function() {
actions.gotoAndStop("about");
actions.about.gotoAndPlay(5)
};
history_btn.onRelease = function() {
actions.gotoAndStop("history");
actions.history.gotoAndPlay(8)
};
gallery_btn.onRelease = function() {
actions.gotoAndStop("gallery");
actions.gallery.gotoAndPlay(10)
};
contacts_btn.onRelease = function() {
actions.gotoAndStop("contacts");
actions.contacts.gotoAndPlay(13)
};Any idea of what i shud do? Thnx
why not put the action in the actionscript for the button ?
i.e. convert the object to a button using F8 etc
right click on button and select actions
then use
on (release) {
gotoAndStop(PAGE NUMBER);
}
then whenever you wish to use this just copy the button from your library ? does that help ?
what else is there to do in antarctica ?
so your linking a html file to a button in flash ? or is it another type of file. Post the actionscript here ?
ok obviously im not gonna do this all for you, but the best way of doing this is creating an object for each person which would contain all there details 'name, pledge etc' then you could do anything you please with the data. Or you could alternatively load all this data into an array by splitting the text file at every ",". Like so
while (dis.available() != 0) {
String data = dis.readLine();
String[] record = data.split(",");
System.out.println(record[2]);
System.out.println(record[3]);
// this would print 25 then 5
}
now you could do this for each record you have and store them in a multidimensional array (which isnt really true for java as it stores arrays of arrays)
but for you to understand this i suggest looking here http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html
its best to try and grasp the code ive shown above first and progress from there as you will inevitably have more loops. Post back with more questions if you have any.
the only way i know of making this work across all browsers would be to use Javascript. You could google search javascript marquee and there will be hundreds of examples. But then this would rely on users having javascript installed. Thus stopping some users seeing the marquee and putting you right back at square one. Your probably best to go with static text unless 100% nescessary.
there are a couple of ways of achieving this but what are you expecting to use javascript or PHP would be most suitable.
If your unsure, for PHP you will require a server with PHP installed on it whereas with javascript would obviously need it installed on each computer that uses it. Most comps nowadays do have this so its not really a problem. but let me know and i may be able to help further ?
it sounds quite sensible to me i was just quite suprised when i found out there was no where online that could show you how to do this. I mean belkin offer this as aprt of there router but there is no demo to show a 'real life' situation for the access point configuration. Im gonna give it a shot though and ill post back if theres 'ANY' luck.
sorry i managed to get hold of a book "networking for you" in the library, its rubbish i dont recommend it but i managed to get my diagrams done from that. thanks for replying tho
does anybody know of a good tutorial on how to draw a 'physical network diagram' im required to do it for my studies but they havnt supplied an example and i seemingly cannot find one at all through searching. Just applications that claim to do it for me. I know i can do this through visio 2003, But id just like a guide pretty much, any help ?
sorry, my mistake
obviously everyone is entitled to there opinion. But i make money creating web sites without using dreamweaver. It all depends on the user, if your confident enough that you can code completely by hand then i suggest this approach as being the definitive answer. Having dreamweaver weave its magic solutions for me doesnt appeal to me, plus the horrendous amount of bulk code it adds to your project when using the automated methods. This may not appear on small projects but when you start to undertake something a little bigger there is a consierable amount of data being stored which is useless. But as i said everyone to there own.
That seems to have worked. Thanks a lot.
p.s. In your signature, you need to fix the links. They both have ] in the hyperlink, so when you click it the url doesn't work.
why thank you :D
here you go
<script type='text/javascript'>
function isEmpty(elem, errMsg){
if(elem.value.length == 0){
alert(errMsg);
elem.focus();
return true;
}
return false;
}
</script>
<form>
Name : <input type='text' id='name'/>
<input type='button'
onclick="isEmpty(document.getElementById('name'), 'Please Enter a Value')"
value='Check Field' />
</form>
obviously it will work the same with a textarea but i just ripped it out of some of my own code. hope this helps
hello all,
i have a belkin 54g router connected to 3 devices via ethernet. And a Netgear WGR614 router upstairs that connects 3 devices via ethernet. They are within range of each other and i know for a fact that the Belkin can be set up as an access point. Is it possible to cross the networks over. So that those connected using the netgear can access the internet through the belkin ?
PSPAD all the way
NO CLIENT SIDE SCRIPTING how you can create a site and rely on your users to have the correct spec is beyond me. Its like going to a pub and having to take your own beer.
ok if your running this from a web page (which im guessing you will be doing as what else would you be doing here) then yes you will need hosting. Or alternatively use a free video hosting site such as www.photobucket.com or other. If you opt for free website hosting then streaming the video from a free server will be very SLLLOOOOOOWWWWW and painful for viewing (trust me i know). But as far as your code is concerned your just missing 1 <PARAM> tag to tell the browser where to find the video file.
ive adjusted the code below.
where it says LINK HERE then this is where you will put the path to your file located on your server or free video hosting site. If you need any more help wb.
PS. your link should appear twice as there are 2 LINK HERE statements
<OBJECT id=MediaPlayer1
codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701
type=application/x-oleobject height=256
standby="Loading Microsoft Windows® Media Player components..."
width=280 classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95>
<PARAM NAME="FileName" VALUE="LINK HERE">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
src="LINK HERE" name="MediaPlayer1" width=280 height=256 autostart=1 showcontrols=1 volume=-450>
</OBJECT>
it would be alot better if you would have planned this into the method before hand but the easiest way to do this that i can see is to wrap the entire code with :
boolean okFlag = false;
while (!okFlag) {
...CODE HERE
}
then when you want to break from this i.e. if the toppings arent there you can call
break;
this would stop the for loop and return to the outer while loop. In which it would call the top two line again and the rest of the method.
when wanting to exit this loop simply change the boolean value 'okFlag' to true.
Im also pretty much a newb so if this is totally wrong go easy :D
I need some help.
I am trying to post a video slideshow in to my auction listing, and cannot figure out how to do that.
I have found on your website here, the codes to put the media player into the listing, but cannot figure out how to put the video or slideshow. Where do I replace the name of the files in that code, where can I post the video for a url?
If someone could help me out on this, it would be greatly appreciated.
Thanks!
misschristi
can u post the code or the link to the code ?
im pretty sure flash handles .swf movies similiar to images. I cant say for sure as i havent used flash in time. but i have this link which could help http://flash-creations.com/notes/dynamic_preloadswf.php
Hi all,
I have a dropdown and a textbox and I want to be able to change the textbox to a dropdown control, after a certain value in the dropdown is selected.
I have a problem in changing the controls from textbox to dropdown.
Any help???
ok this could be a long winded approach to what your after, why not use Javascript to create a Hidden ComboBox Which when the user selects your special choice in the main ComboBox will hide the current text box and show the Hidden ComboBox and vice versa when the result isnt selected. There are alot of tutorials out there that show the basics of this.
Without answering your whole question I'll give you a start
You need 3 of the tables to find cost per hire -
HireContract
Staff
BranchJoin them to each other and you should then be able to find the contracts for each branch (join fields are StaffID and BranchNo)
Give it a go and post here when your done
Cheers
D
hello, cheers for the reply i actually managed to figure it out myself :P after a long and painful process. Really am greatful for the help though. Thanks ..
hello, ive been busy trying over and over and over again to write a block of SQL that will perform this task for me but have failed ever time. hopefully someone can point me in the right direction or at least gime a hand cheers.
task : to work out what is the average cost of hire contracts for each of the five branches?
i have 5 tables set up
which are as follows
/* creates the Branch table
primary key 'BranchNo' */
CREATE TABLE Branch (
BranchNo NUMBER(3) CONSTRAINT pk_branch PRIMARY KEY ,
BranchName VARCHAR2(28) ,
BranchAddress VARCHAR2(40) ,
City VARCHAR2(18) ,
B_tel_no VARCHAR2(12) );
/* creates the staff table
primary key 'StaffID'
foreign key 'BranchNo' */
CREATE TABLE Staff (
StaffID NUMBER(3) CONSTRAINT pk_staff PRIMARY KEY ,
StaffName VARCHAR2(20) ,
BranchNo NUMBER(3) CONSTRAINT fk_BranchNo references Branch(BranchNo) ,
JobTitle VARCHAR2(20) );
/* creates the Customer table
primary key 'CustomerNo' */
CREATE TABLE Customer (
CustomerNo NUMBER(3) CONSTRAINT pk_customer PRIMARY KEY ,
CustomerName VARCHAR2(20) ,
CustomerAddress VARCHAR2(48) ,
CustomerTelNo VARCHAR2(12) );
/* creates the Car table
primary key 'CarRegNo' */
CREATE TABLE Car (
CarRegNo NUMBER(3) CONSTRAINT pk_car PRIMARY KEY ,
CarTypeNo VARCHAR2(28) ,
CarModel VARCHAR2(48) ,
Colour VARCHAR2(18) ,
Mileage NUMBER(7) );
/* creates the Type table
primary key 'CarTypeNo' */
CREATE TABLE Type (
CarTypeNo NUMBER(3) CONSTRAINT pk_type PRIMARY KEY ,
TypeDescription VARCHAR2(48) ,
DailyCharge NUMBER(5,2) );
/* creates the HireContract table
primary key 'Hire_Contract_No' & 'CarRegNo'
foreign key 'CarRegNo' & 'CustomerNo' */
CREATE …