Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1651.

Solve : HTML Form, Signing in! *Help needed!*?

Answer»

I need something that will allow me to insert as much information as I want. It can be javascirpt.
It should be something like:

username,password,link
username,password,link
LOGIN

---
I enter a username, AND password.
When soemone fills in the form, it checks it.
If it is correct, they go to the "link" part of the script.


----------



and if the information is not correct, it will go to another link.



PLEASE HELP ME!How is the data checked? With a database or a JS variable?I dont know, I just need a login form that I can add more users! Each user has its on link!

I need directionsJavaScript won't be able to do what you want.

You'll need PHP/ASP and a database for it to store users. You'll also want an authentication system to allow you to add more users, and block everyone else from adding users. For each user to have their own page, you'll need another login system.

I don't THINK you REALISE what's involved here, and I doubt you'll get SOMEONE on here to do it for you.Quote from: kpac on January 05, 2009, 01:11:51 PM

JavaScript won't be able to do what you want.

You'll need PHP/ASP and a database for it to store users. You'll also want an authentication system to allow you to add more users, and block everyone else from adding users. For each user to have their own page, you'll need another login system.

I don't think you realise what's involved here, and I doubt you'll get someone on here to do it for you.

Actually Javascript can do that, but the users will have to be added manually by the webmaster, what I did back in grade school was, create a user registration form that sent me an email of the users details, then I implemented them into my Javascript coding. But YEAH you are right if you want automated user authentication you'll need a server side scripting language such as those listed above PHP, ASP, and you could also try Perl which I'm quite fond of, but there is many others you could also try.Okay can someone give me the code, and tell me what I need to name my page? For example (name.)Have a LOOK > here <, as I have answered this previously...
1652.

Solve : what is your choice’s web server for local computer??

Answer»

Hi

I want to selecting a web server for php, cgi , js, mysql , perl and etc.
Some web server work and configure easy but are WEAK and some work as rock but configuring of them are too hard (like apache).
My operating system is windows xp pro 32bit and every one know some software in Linux also is product for MS’s operating system.

Thanks to allapache is the best..

http://www.w3.org/Servers.html <<

I have used Vertigo for some time - mostly so I can deal with my PHP ...... but on balance probably the Apache is best.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Was trying to remember one earlier - just come to mind ......


The XAMPP 1.6.7 is available!

Apache HTTPD 2.2.9 + Openssl 0.9.8h
MySQL 5.0.51b
PHP 5.2.6
PHP 4.4.8
phpMyAdmin 2.11.7
FileZilla FTP Server 0.9.25
Mercury Mail TRANSPORT System 4.52

http://www.apachefriends.org/en/index.html
Yup, I have used XAMPP for about 2 YEARS now. Excellent PACKAGE. xampp

1653.

Solve : php and mySQL?

Answer»

I have installed my apache server 2.2, php 5 , and mySQL 5,., my installer is not a package.,., i've done configured my apache and php,, but my problem is my php and mySQL.,., it is needed to CHANGE SOMETHING from php.ini,??? so that my php and mysql can communicate???
PLS.,., HELP me!!!!!

1654.

Solve : free web hosting?

Answer»

hi friends,
I have just created my web site as home project. now I just want know the name of organisations who would host it freely with no initial charges. I have googled for it already but couldn't find any useful link.

if someone know or getting the services from some web hosting orgs completly free, please let me know.
I know of a couple of free web hosts:

110mb.com - Most Endorsed FREE Website Hosting Provider
Zymic.com - Free Web Hosting, Free Templates, Free Tutorials and More

Here is a couple more:
http://www.google.com/search?hl=en&q=free+web+hosting+with+no+ads&btnG=SearchI m stuck out of this

I am trying to register here but there is an annoying problem, actually it tell US to write the exact signature given in TOC but it is not accepting the signature I enter even though there is not any mistake.

have you registered before, please tell me what is the problem.
one more thing, I have designed me website using HTML/javascript/JSP, ORACLE database, tomcat then will it host?
if not please tell me about the relevant hostsI'm not sure what the problem is, and yes I have registered there before.

Quote from: san_crazy on September 12, 2008, 06:41:33 AM


one more thing, I have designed me website using HTML/javascript/JSP, Oracle database then will it host?
if not please tell me about the relevant hosts

No, that won't work then. For JSP and a database you will need a payed-for host.Quote from: san_crazy on September 12, 2008, 06:41:33 AM

if not please tell me about the relevant hosts

I haven't tried any of these, but came up in a search.... They should meet your requirements.

http://www.revion.com/
http://www.smedia.info/

Here you will find a list of the top hosts available:
http://www.webhostzone.com/Quote from: kpac on September 12, 2008, 06:46:27 AM
I'm not sure what the problem is, and yes I have registered there before.


ok...the problem still exist but in case it would be solved anyway what else will I need to do to complete the process?Process? You mean registering with 110mb? Once you click on the link in the email they send you, everything will be done. Just upload your website using the file manager.

But do you still want to use JSP and Oracle? Then...

Quote from: kpac on September 12, 2008, 06:46:27 AM
For JSP and a database you will need a payed-for host.
no I am not gonna use it.

by the way if we put database aside, why jsp is not hosted free while this is not the case with ASP technology?

any such problem with Tomcat?I'm not sure about that one.

PHP is hosted free because it's an open source technology - it's free.Hi. I couldn't sign up for 110mb.com either, and I use axspace.com to host my website.

check it out (it's obfuscated code and has a 8rf.com redirect)

Blueoranges.8rf.com

It used to be a gaming website for my friends and I before I graduated from High School, but now it's mostly for web programming practice. Axspace has 100mb limit on webspace, but it is quite fast. I also used to use Runhost.net and I am considering switching back (More space to host Flash FILES.) I had left initially because they had crashed. They are working now I believe.

EDIT: Actually, I tried to move my website to Runhost again right now, and apparently they still aren't working. Jeez, rather slow, they crashed over a month ago. I don't recommend them for the time being...

EDIT AGAIN: Oops, forgot you can get 200mb space with axspace if you sign up for their website directory. Silly me. Should have thought of that before I deleted my RPGs SECTION, haha.

~ BaRRHi all,

I think this information can be useful for you. If you plan to get your website, here is one good free web hosting provider to choose - 000webhost.com

They provide hosting absolutely free, there is no catch. You get 350 MB of disk space and 100 GB bandwidth. They also have cPanel control panel which is amazing and easy to use website builder. Moreover, there is no any kind of advertising on your pages.

You can register here: http://www.000webhost.com/83241.html


www.rack111.com


^^ No Ads / Google Ads , up to 5 databases , php , perl , Free , lots of free stuff , nucleus , phpbb2 ect , no upload cap ,


www.x10hosting.com

^^
No Ads , Free , Php ,Perl Ftp , No Upload Cap , You have to sign in every 2 weeks to the forums

www.t35.com
^^ Good Free Host , With Ads , Requires no Sign in , Has no Databases 1 Ftp Account and a 460kb upload cap , or 100 seconds;
1655.

Solve : Please Help! Comment Box!?

Answer»

I dont know how to make a comment box! I dont know how to make a database or any php.

Is it possible SOMEONE can help me make one that will make the text appear above it.
Heres the forms:
Code: [Select]Comments: <input type="text" name="comment" length="20" width="40" /> <br/>
Display Name: <input type="text" name="name" width="40" />
<input type="button" name="Submit" value="Submit" />

It should be somewhat like:

POSTED by: Bailey:
-----------------------
HI!
NEXT COMMENT
-------------------
(Text = "HI!")
< NAME BOX > (Text = "Bailey")
Have you got access to a database and PHP? You'll definitely need it.I have acess to a database. But php and All that wont work on my website.If you have access to a database you'll more than likely have access to PHP or ASP, and you will need one of them for the comment system to work.Maybe my code can help.,., just try this.,.


/* viewcomment.php */


/*some sql commands that will retrieve and dispaly the stored data in the database */

echo $ROW['name_field'];
echo "-----------------------------------------------------";
echo $row['comment_field'];

?>

Comments:

Display Name:





/*comment.php*/


$comment = $_POST['comment'];
$name = $_POST['name'];

/* some sql function that will store the data to the database */

header("LOCATION: viewcomment.php");//redirect to the viewcomment.,.

?>Quote from: Bannana97 on January 06, 2009, 09:16:08 AM

But php and All that wont work on my website.

He SAYS PHP won't work on his site, but I don't think this is true.Okay I uploaded my site to an FTP server,

I can use it now.
1656.

Solve : Forum co.nr help?

Answer»

How can I place the co.nr banner on a free forum, that the only way I can edit it is through the administration panel?Can you explain this a bit more, please?

Do you have the forum going? What is the banner?The banner is here
http://www.freedomain.co.nr/

When you sign up for a .co.nr, it says you have to place the banner on your site, but I am running a forum, under a free-forum name, so I can't EXACTLY edit the code, only the admin panel...Quote from: Mr. Google on September 24, 2008, 04:37:34 PM

... so I can't exactly edit the code, only the admin panel...
Maybe it can be EDITED. What forum software are you using? Do they have some support on their website?I used .co.nr without a banner, ive had a webpage up for 3 weeks and they havent yet deleted the LINK like they said, you can also try dot.tk , requires no registrationAnother way to put the banner on there, would be to create a topic in the forum, about .co.nr, including the image.Quote from: kpac on October 05, 2008, 01:13:31 PM
Another way to put the banner on there, would be to create a topic in the forum, about .co.nr, including the image.

But it looks for the HTML code and it looks for the banenr on the front page, but YEA I guess they havent deleted my site for a while so.........Quote from: Mr. Google on October 05, 2008, 05:03:27 PM
but yea I guess they havent deleted my site for a while so.........

Exactly. It was free anyway, so I don't think they'll be too worried. If your forum evolves to have a few thousand members, then maybe they will start to notice you.
1657.

Solve : IE vs Firefox?

Answer»

I am putting togeather a site for my hometown.
I notice firefox is ENCOUNTERING a tricky bug, when I view my page.

I have a which i'm filling up with

tags, to make an orderly lising of news stories.

as the number of

tags grow, they no longer appear 'contained' in my tags,
although the code certainly has them there.
this is a problem, because my has the BACKGROUND, which I want to continue to appear behind my

tags.

please have a LOOK, first using IE 7, then using Firefox. any input would be appreciated.
( toward, center/bottom of page )


http://www.digitall-productions.com/muskoday/I have PUT a band aid on this problem, because it does not seem anyone can solve it. if you view the link listed above, the problem DESCRIBED will not be apparent. Thanks anyway guysIs the problem solved?No, it still a bug. I just set the height property of the 'gray column' to a static value, which was large enough. not dynamic, just barely functional

1658.

Solve : Starting Apache error msg- what other progs are listening on port 80?

Answer»

I've had Apache installed for a year or so now. I guess a recently installed program must have messed things up. When I try to start Apache, I GET an error message that something is already listening on port 80.

I've tried running the netstat command but the window flashes up on the screen for half a second and then closes. I also tried the command
netstat -an |FIND /i "listening" > c:\openports.txt but again, it just flashes up on the screen and closes.

If anyone can help, it would be great appreciated! I would also like to know if having Apache on port 80 is a security risk and if I should change the port. If so, how would i go about this?

Thank you in advance!
Use TCPVIEW From Microsoft http://technet.microsoft.com/en-us/sysinternals/bb897437.aspxThanks. I went ahead after I first POSTED this and uninstalled SKYPE and that took CARE of it.

1659.

Solve : PHP & MYSQL?

Answer»

I have a lot of spam coming on my php and mySQL Board and Chat Forum - posting OBSCENITY and all - How can I block them out? I need help please.What forum and chat room is it? SMF? phpBB? vBulletin?phpBBHow does registration on your forum work? Are new registrations automatically activated or are they held in suspence until you complete the process?

You can BAN registrants. Do you know how to do that? No. Kindly put me through that please.Quote from: soybean on October 05, 2008, 09:34:11 AM

How does registration on your forum work? Are new registrations automatically activated or are they held in suspence until you complete the process?

?

Quote from: watersprings77 on October 05, 2008, 12:54:16 PM
No. Kindly put me through that please.

Have a look here: http://www.phpbb.com/support/documentation/kpac, I'm an administrator for a phpBB forum. When I first started doing this, spammers would REGISTER and post unwanted stuff in the forum; registration was automatically activated, without any intervention from me. Or, if my facts are not correct here because I've forgotten some details, at least they could register and post a porn website in their initial profile setup - you know, the box where you can enter a website - and that was visible to anyone who clicked on their username. This is a church website and that was absolutely UNACCEPTABLE.

I visited phpBB's website and found a modifcation which put a stop to this. Now, registrants see a screen that tells them to only fill in certain boxes, that the other boxes can be completed once registration is approved, and, if they ignore this, their registration will completely fail (I'll never even see it).

I'm sure the version of phpBB on the site for which I'm an admin is not latest version. kpac, you're an admin on a phpBB forum, aren't you? How does your registration procedure work?Quote from: watersprings77 on October 05, 2008, 12:54:16 PM
No. Kindly put me through that please.
In your phpBB admin panel, you have a section titled "User Admin", right? You need to get familiar the features there. That's where you can IMPLEMENT some restrictions and delete users.Quote from: soybean on October 06, 2008, 02:11:24 PM
kpac, you're an admin on a phpBB forum, aren't you? How does your registration procedure work?

No, it's SMF, like this forum, but I am the admin. You can choose whether members have to activate their account, if an admin has to approve of it, immediate registration, or just don't let anyone join! You can also choose the complexity of the visual verification image, and the required strength for the member's password.
1660.

Solve : Need to make this into a regular video?

Answer»

Note: I'm in a hurry right now, and I'm not sure where to put this, so SORRY if its in the wrong place.

How do I MAKE this code into an actual video that can be played like a regular video FILE? I know that if you put it into a myspace MESSAGE, it becomes a flash video(I think it's flash)

are there any tricks I can use? thanks.

http://services.brightcove.com/services/viewer/federated/1126082709">


http://services.brightcove.com/services/viewer/federated/1126082709" />


http://admin.brightcove.com" />

Well, to EMBED .swf to web page, you can use HTML code like this:
Code: [Select]<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="432" height="330" title="game">
<param name="movie" value="/flash/yourflash.swf" />
<param name="quality" value="high" />
<embed src="/flash/yourflash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="432" height="330"></embed>
</object>

1661.

Solve : window.open?

Answer»

I am CREATING a Web application that with one of the links on the default.aspx page I am using javascript to open the window and limit the size and scroll BAR and so on. The script itself is working with one small bug. The default.aspx window goes blank, this is something that I do not wish to happen. Below is the script that I am using

Code: [Select]<head>
<script type="text/javascript">
function openNewWindow(newPageURL) {
window.open(newPageURL, "_blank", "height=500px width=500px " +
"resizable=no scrollbars=no menubar=no location=no status=no");
}
</script>


</head>
Code: [Select]<br /> Please read our <a href="http://fa-iwp-01.macomb.edu/asmarl/itwp2300/MichiganTalentBank/employer.aspx" onclick="javascript:openNewWindow('/asmarl/itwp2300/MichiganTalentBank/policy.aspx');"><b><u>Privacy Policy</u></b> </a>
Thanks in advance for your time and HELP,
If you're trying to open two pages at the same time, I would suggest using javascript for both of them. It's probably confusing the browser. get rid of the href="" and put it in another openLink function like the other link is. And then use your onclick to trigger both events.Code: [Select]<head>
<script type="text/javascript">
function openNewWindow(newPageURL) {
window.open(newPageURL, "_blank", "height=500px width=500px " +
"resizable=no scrollbars=no menubar=no location=no status=no");
}
</script>


</head>

Code: [Select]<br /> Please read our <a href="#" onclick="openNewWindow('/asmarl/itwp2300/MichiganTalentBank/policy.aspx');"><b><u>Privacy Policy</u></b> </a>

That WORK?Thankyou so very much, that worked!
LoriNo problem...

Call back if you need any more help.

1662.

Solve : php vs. javascript?

Answer»

All PERSON who used this web PAGE already INSTALLED winzip program,

Sorry i have go to doctor, tomorrow back again

Thank you answers

demo71 quitPlease STOP hijacking other topics.

Start a NEW one.

1663.

Solve : Parse error: [phpmySQL]?

Answer»

below is my code can anyone help me with this error:

Parse error: syntax error, unexpected T_STRING in C:\wamp\www\cssonline\confirm.php on line 28



$HOST = "localhost";
$USER = "ROOT";
$PASSWD = "";
$database = "cssonlinedb";


$connect_db = mysql_connect("$host","$user","$passwd");

if (!$connect_db) {

die ('Could not Connect: ' . mysql_error() );
}

mysql_select_db("$database", $connect_db) or die ('Cant connect the database: ' . mysql_error() );

$id = $_POST['stud_id'];
$passwd = $_POST['password'];
$lname = $_POST['last_name'];
$fname = $_POST['first_name'];
$mname = $_POST['middle_name'];
$mail = $_POST['email'];
$gender = $_POST['gender'];
$yrlevel = $_POST['level'];
$country = $_POST['country'];

//error line
$sql = INSERT INTO registration
( stud_id, password, last_name, first_name, middle_name, email_ad, gender, year_level, country )
VALUES
( '$id', '$passwd', '$lname', '$fname', '$mname', '$mail', '$gender', '$yrlevel', '$country' );
$test = mysql_query($sql);

if (!$test) {

die ('Error: ' . mysql_error() );

}

mysql_close();


?>
please because this is my thesis proposal, and i cant deal with it!!!!!!!!

You have no qoutes around the variable value.

Code: [Select]$sql = "INSERT INTO registration
( stud_id, password, last_name, first_name, middle_name, email_ad, gender, year_level, country )
VALUES
( '$id', '$passwd', '$lname', '$fname', '$mname', '$mail', '$gender', '$yrlevel', '$country' )";
thanks.,., it works now!!!Great!

1664.

Solve : Photoshop?

Answer»

I installed this Photoshop software on my other pc but its default background COLOURS are yellow and black, whereas they should be white and black, its making my PICTURES look kinda sepia, I tried to change the colours but you can see that There is no white option in the 'Select Foreground Colour' window, There is no white and I need white.

Any help would be really appreciated.

Thanks.
I'm unable to attach files , I wanted to upload a SCREENSHOT of this but I'm not able to attach files, I'm able to upload pictures to other sites though, and my internet speed is really fast.

Thanks!Ok, after researching I have realized this could be a bug, its an annoying bug, because my black and white pictures are black and yellow!!!!!!!!!!!!!

[Edit: It was not a bug]Ok, I have to recalibrate my monitor, this problem has only ONE solution and thats calibration, I'll try it So the problem was calibration,This had to be done by running Adobe Gamma.
First navigate to this folder on your desktop(If its on your desktop, if not then Search for it, you'll most probably find it in your C Drive) .
Then double-click on the Adobe Gamma control panel to begin calibrating your monitor.

I advice you to take someones help if your doing this on your own as it can be complicated, I actually improvised pretty much all the time.

Helped me learn more.

thanks

1665.

Solve : Change Image on a certain Day?

Answer»

How would I code a change to an image in html? I imageing that I would have to have it coded in javascript. But I hate to try an code it in java myself.This will help you, I'm not sure how to do the whole thing.
Code: [Select]<script type="text/javascript">
var date=new Date();
document.write(""+ date +"");
if (date==12/13/2008)
{
document.write("this will help you");
}
</script>
that should help out a little but are you haveing this should help appear as a message?

??

isnt that the full code?Found this php routine which changes image for each day - might be something to start with and modify.

Code: [Select]<html>
<head>
<title>Today is <?phpechodate("l");?></title>
</head>
<body>
<?php
/*ThisPHPScriptdevelopedbyScottClark
TheSourceisavailableathttp://www.clarksco.com/dev/
Copyright2005ClarkConsulting*/
//Variables
$url="http://YOURDOMAIN.COM/images/";
$monImage="$url"."monday.jpg";
$tueImage="$url"."tuesday.jpg";
$wedImage="$url"."wednesday.jpg";
$thurImage="$url"."thursday.jpg";
$friImage="$url"."friday.jpg";
$weekendImage="$url"."weekend.jpg";
$d=date("D");
//Functionthatswitchesbetweendateimagesbasedontheactualdayoftheweekin$d
switch($d)
{
caseMon:
ECHO"<imgsrc=$monImage>\n";
break;
caseTue:
echo"<imgsrc=$tueImage>\n";
break;
caseWed:
echo"<imgsrc=$wedImage>\n";
break;
caseThu:
echo"<imgsrc=$thurImage>\n";
break;
caseFri:
echo"<imgsrc=$friImage>\n";
break;
default:
echo"<imgsrc=$weekendImage>\n";
}
//End
?>
</body>
</html>
I dont understand your code. jacob yours dont work.Quote from: squall_01 on October 03, 2008, 10:04:20 AM

I dont understand your code.

You mightn't understand it, but it should work.Quote from: squall_01 on September 21, 2008, 06:59:37 AM
How would I code a change to an image in html?

People, SQUALLY wants it in CLIENT SIDE script, PHP is server side. I doubt that he's running a server.

now, with that out of the way- he also wants to change an image.

Now, this can't be done in HTML, but it can be done in Javascript.

I don't have a good recollection, so anything I write here wouldn't work. Instead I think you could search dynamicdrive.com, they have some great scripts you can use in ADDITION to what your looking for, I'm sure.

Just one last thing however.

Quote from: squall_01 on September 21, 2008, 06:59:37 AM
.... I would have to have it coded in javascript. But I hate to try an code it in java myself.


Java and JavaScript are two DIFFERENT languages completely. Java is a compiled language DEVELOPED by Sun Microsystems. JavaScript was developed by netscape as "LiveScript" but they changed the name when they saw Java gaining fame.
thats what I am saing. it would be a complete pain. yeah they should have something like that if I recall.any one taht run javascript instead of like php.Try this...

Code: [Select]<script type="text/javascript">

var d=new Date();
var weekday=new Array(7);
weekday[0]="Sunday";
weekday[1]="Monday";
weekday[2]="Tuesday";
weekday[3]="Wednesday";
weekday[4]="Thursday";
weekday[5]="Friday";
weekday[6]="Saturday";

if(weekday[d.getDay()]==0)
{
document.write("<img src='image1.gif' />");
}

elseif(weekday[d.getDay()]==1)
{
document.write("<img src='image2.gif' />");
}

elseif(weekday[d.getDay()]==2)
{
document.write("<img src='image3.gif' />");
}

elseif(weekday[d.getDay()]==3)
{
document.write("<img src='image4.gif' />");
}

elseif(weekday[d.getDay()]==4)
{
document.write("<img src='image5.gif' />");
}

elseif(weekday[d.getDay()]==5)
{
document.write("<img src='image6.gif' />");
}

elseif(weekday[d.getDay()]==6)
{
document.write("<img src='image5.gif' />");
}

else
{
document.write("Can't tell what day it is!");
}
;

</script>
1666.

Solve : please with me: firefox and internet explorer.,?

Answer»

at this time i'am developing my website and i'am new on PHP.,., but my problem is my design.,, when i open it using firefox, the design is okey., the tables and the position of my textbox and other BUTTONS are also okey., but the problem is when i openy design using internet explorer, my design will turn into a mess.,., the tables, the menu, the buttons, and a lot more will change there position.,., please help me dealing with this stuff.,.,Designing for different BROWSERS is a difficult task since each browser maker sees things differently. You basically have four options:
1. Make a different design for each browser
2. Figure out how to make each browser happy by researching correct implementations of code.
3. Forget about one of the browsers
4. Send all the IE users to the firefox download page instead

Personally, I would be all for option #4, but the correct approach would be #2 (also the most time consuming)There is another alternative, but it doesn't help you with your own design.

The trick is to find a template that closely matches your own design and is already compliant with most, if not all, of the major browsers.

Oh, the happiness of designing one's own website...I know the problem well! In fact you even have to check in IE6 as well as IE7 as there will be differences possible.

My approach is to use some of the ''hacks'' within CSS where necessary and also resort to use of simple table useage as well.

If you SEARCH the web on this subject you will find some info around which might well help you. Plus a vist to the W3 school site.

One major problem is the ''box model'' is interpreted differently between some browsers and IE and FF are usually where this shows most ... even Opera too needs checked.BTW, have a LOOK at Browser Shotsthanks to everyone, i thougth the problem is in my code and tags.,.,

is there any code that can be use??? to fix this problem.,.,??

here comes the other one: How can i edit a sample template???Quote from: r3ynz_t4nz on October 09, 2008, 04:39:05 AM

here comes the other one: How can i edit a sample template???

View Source.
Check out Notepad++Quote from: r3ynz_t4nz on October 09, 2008, 04:39:05 AM
here comes the other one: How can i edit a sample template???

Depends on where you get it from.

Most templates can be edited with various HTML editors, including...but not limited to Notepad.
1667.

Solve : Email injection or someone playing games??

Answer»

Hi,

I have set up on my website a comments/feedback form, via a php menu system. The feedback is then sent via EMAIL, as part of the php forms function directly to me.

Recently I have been getting the following in my EMAILS:

From: gcnjgfzoyp
E-Mail: [emailprotected]
Comments: ux3lye http://dkjyjiacqczz.com/\">dkjyjiacqczz[/url], behomdnfkvsd, [link=http://eyqrdadyimjt.com/]eyqrdadyimjt[/link], http://dvxlpproknfu.com/
Operating system: jREClmxpNwpJ
Further inclusion: ux3lye http://dkjyjiacqczz.com/\">dkjyjiacqczz[/url], behomdnfkvsd, [link=http://eyqrdadyimjt.com/]eyqrdadyimjt[/link], http://dvxlpproknfu.com/

It's always in the same format of nonsense addresses and URL's.

Does this look to you like an email injection, or someone playing around?

Can you post the code you have?Code on the HTML page is:


Name          




Comments  




If you would like a personal repsonse please submit your email below
Email          




Would you let me know your operating system, so that I can see who the main users of my site are?
My operating system is  




Anything missing from my site at all?
I would like to see the following added to your site  










Code for the php page is:

error_reporting(E_ALL);
$to = "[emailprotected]";
$subject = "Website Submission .eu";
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$comments = $_POST['comments'];
$OS = $_POST['os'];
$moredetails = $_POST['moredetails'];
$body = "From: $name_field\n E-Mail: $email_field\n Comments: $comments\n Operating system: $os\n Further inclusion: $moredetails\n";
mail($to, $subject, $body);
header("Location:http://www.macandpctips.eu/thankyou.html");
?>


QUOTE from: pcwizard on October 12, 2008, 11:11:25 AM

Code: [Select]<?php
error_reporting(E_ALL);
$to="[emailprotected]";
$subject="WebsiteSubmission.eu";
$name_field=$_POST['name'];
$email_field=$_POST['email'];
$comments=$_POST['comments'];
$os=$_POST['os'];
$moredetails=$_POST['moredetails'];
$body="From:$name_field\nE-Mail:$email_field\nComments:$comments\nOperatingsystem:$os\nFurtherinclusion:$moredetails\n";
mail($to,$subject,$body);

The problem is in here.
Try this:

Code: [Select]<?php
error_reporting(E_ALL);
$to="[emailprotected]";
$subject="WebsiteSubmission.eu";
$name_field=$_POST['name'];
$email_field=$_POST['email'];
$comments=$_POST['comments'];
$os=$_POST['os'];
$message=$_POST['moredetails'];
$headers="From:$name_field\r\nE-Mail:$email_field\r\nComments:$comments\r\nOperatingsystem:$os;
mail($to,$subject,$message,$headers);

Any luck?Thanks, I'll amend, upload and let you know if anything comes through.

Thanks for your help.No problem.

BTW, this might MAKE a difference. It could be someone fooling around, but that line looked suspect.
1668.

Solve : table help?

Answer»

how to do change the font size and color inside of a table I tried using font color="green" DEFINED it in the table head its not working what do I NEED? Using HTMLCheck out this link it should help you with tables:
http://www.htmlgoodies.com/tutorials/tables/article.php/3479811Try this:

Code: [Select]<table border="0">
<TR>
<td>
<font color="green">This is green.</font>
</td>
</tr>
</table>
I think it would be better to use CSS. call class or define.
please visit some urls
1. tizag.com
2. w3c.org
3. w3schools.comw3schools.com website is very very useful for beginners, you just CHECK out it in HTML link

1669.

Solve : music in background!?

Answer»

hi, I would like to know, how to load ,music in background in spaces.live.com
ThanksDo you mean you want to add music to your blog?
If yes,
1) Upload your song to some web host... e.g.: http://www.myhost.com/mysong.mp3

2) Put your song's URL on the code bellow...
(just replace http://www.myhost.com/mysong.mp3 with your own link)

code:http://www.myhost.com/mysong.mp3" width=0 height=0 BORDER=0>

3) Copy that code to the clipboard
(select text and HIT CTRL+C)

4) On your MSN Space, go to the "Edit Blog Entry" section
(go to "Blog -> Add entry" , or edit some existing entry)

5) Click the "Insert link" button
(the 3rd button from the right with a globe on it)

6) Paste the code there
(if the code is still on the clipboard, just press CTRL+V)

7) Click "Save"
(after that, if everything goes well, you should start earing your song by now)

8.) You should see "http:// " highlighted... now delete "http://" *BUT* leave the white space just next to it!!! If you delete it, the song will stop playing!
(you can put the cursor on the BEGINNING of the line and hit the "Delete" key untill you delete the "http://" part... the white space, in case you're wondering, is a box with no border and width=0 and height=0, containing the code to play your song ... this will make it "invisible" INSIDE your post, and resulting on a "background music" effect)

9) Write the rest of your post normally... Hit "Publish Entry".



?

Does that work?

<bgsound src="/.../filename.mp3" /> is what is usually used, but that has to go in the of the page, which I suspect you can't do with Live Spaces.

1670.

Solve : XML, XSD, CSS and XSLT?

Answer»

I have a well-defined XML schema and presently use a CSS to render XML files conforming to it on screen in a slightly more user-friendly fashion. However, CSS is not able to support varied formatting within GENERATED elements. I understand that XSLT and FO are able to do this. I therefore want to write an XSLT file that does the equivalent of my present CSS, that I can then adapt to add more COMPLEX conditional formatting.

Is there an easy or programmed solution to translating a fairly complex CSS into the XSLT equivalents (http://www.re.be/css2xslfo/ doesn't work)? What STRUCTURES and forms in XSLT are the exact equivalent of what in CSS?

For instance - here is an extract from the CSS:

Quote

doc {font-family:'times new roman', times, serif;
font-size:13pt;
font-weight:normal;
font-style:normal;
font-variant:normal;
display:inline;
margin-left:2cm;
margin-right:2cm;
line-height:150%}

entry+entry:before {content:"\a\a"}
entry[xref=yes]+entry:before {content:"\a\a"}
entry[xref=yes]+entry[xref=yes]:before {content:" "}
entry[xref=yes] {font-size:80%}

lm+lm:before {content:", ";font-weight:bold}

hom {font-weight:bold}
hom:after {content:" ";font-weight:bold}
fl:before {content:"\2020";font-weight:bold}
l {font-weight:bold}
l+et:before {content:" ["}
et:after {content:"]"}

e:before {content:attr(lang)" ";font-style:normal}
e+e:before {content:" "}
rel+e:before {content:" "}
e[lang="O"],e[lang="S"],e[lang="E"],e[lang="N"],e[lang="I"] {font-style:italic}
e[lang="C"],e[lang="L"],e[lang="M"] {font-style:normal}

rel {font-style:normal}
e+rel:before {content:" "}

note {font-style:italic}
note[br="rd"]:before {content:"(";font-style:normal}
note[br="rd"]:after {content:")";font-style:normal}
note[br="sq"]:before {content:"[";font-style:normal}
note[br="sq"]:after {content:"]";font-style:normal}

What WOULD the XSLT equivalent for this be?
1671.

Solve : How to retrieving table data??

Answer»

Hi, i have an html table that displays some data. When a USER hovers over each cell, the cell is highlighted(using onmoveover function)I need to have the ablilty for the user to then click on a ROW, and then i need to obtain the data from that row.

Can anyone help with this please?Do you have any code already we can work with?Hi, many thanks for your reply,

1)I have a javascript function



function check(xxx){
}


and between the body tag of the html file i have the table

XXXXYYYY


the aim is to be able to pass XXXX and YYYY in the table row to the javascript function for processing.Before I can write a script, I'll need to know what you mean by "processing". Passing values the a script is easy, I just need to know what to do with it!

To get the value of XXXX and YYYY, add ad ID to each , like:

<td width="490" valign="top" id="XXXX">XXXX</td><td id="YYYY">YYYY</td>

And then add this to your script:

var x = document.getElementById('XXXX').innerHTML;
var y = document.getElementById('YYYY').innerHTML;
Hi, again thanks for taking the time to reply.

Once the data is passed to the script, it then calls a servlet, which will then use that data to QUERY a Database.

Actually the data that populates the table to start with, comes from a database, so the table is populated as FOLLOWS, using a for loop(where pFiles and pMessages are arrays fed in from a servlet, the size of which can change):

...
<% out.println("");
for(int i = 0; i < pFiles.length; i++){
out.println(""+pFiles+"</td><td>"+pmessage+"</td>"
}
out.println("</table>"); %>
...</body>

Now my aim is to get the data in the row once the user clicks in a row,

Are you saying:
1) that i could use an id in each td, so i should do the following(extracting just the td bit from above):
<td id=\"pFiles\" >"+pFiles+"</td>

2)But then as the id will change dynamically, how can i use the document.getElementbyId() function? Or what should be the parameter passing into the document.getElementById() ?

Again thanks for taking the time to reply.



I really haven't a clue about ASP, if that what your writing in, but my JS skills aren't too bad.

Quote from: vks on January 06, 2009, 03:26:32 AM
Are you saying:
1) that i could use an id in each td, so i should do the following(extracting just the td bit from above):
<td id=\"pFiles\" >"+pFiles+"</td>

2)But then as the id will change dynamically, how can i use the document.getElementbyId() function? Or what should be the parameter passing into the document.getElementById() ?

You could assign the table with an ASP variable (not sure how to do it though), and then use the same variable in the JavaScript.i'm writing it in HTML with a bit of javascript. No asp stuff, i havent a clue about that either. But this problem is my wall, the last bit of my project i need to overcome.Quote from: vks on January 06, 2009, 10:15:36 AM
No asp stuff, i havent a clue about that either.

Are you sure? This code is ASP, isn't it?

Quote from: vks on January 06, 2009, 03:26:32 AM
Code: [Select]<body>...
<% out.println("</table>");
for(int i = 0; i < pFiles.length; i++){
out.println("<tr onmouseover=\"this.bgColor='lightblue'\" onmouseout=\"this.bgColor='white'\"
Style=\"cursor:hand\" onclick=\"check()\"><td>"+pFiles[i]+"</td><td>"+pmessage[i]+"</td>"
}
out.println("</table>"); %>
...</body>

What language are you using to connect to the database?no, its not, i'm positive..actually anything withing the <% %> tags is java. And my file is saved as a jsp file.

But would you how to go about getting the row data? maybe i could try an implement a solution similar to yours.
using java to connect to the dbOh, sorry but I don't know Java. PHP is my language.
1672.

Solve : Is it possible to allow users to draw pictures and automate the upload to a site?

Answer»

Hi -

I'm LOOKING to create a page on my site which will allow kids to draw pictures and submit them for other kids to see. Is this possible and if so, anyone have any examples or interested in helping me with figuring out the code? Many many many thanks! A very advanced script (which I'm not SURE how to do) would be needed to allow people to draw there pictures on your site - maybe Flash would do it.

What you could do is LET the CHILDREN draw their pictures using Paint or some other program and USE an upload form on your site. Then use a script to display them all.

1673.

Solve : HI FRIEND?

Answer»

Quote from: ANY9999 on October 12, 2008, 04:28:32 AM

... AND WANT TO UPDATE DAILY

How did you want to update, manually or automatically? If you REPLY, please write FULL sentences, just as I'm doing here. What happened there, soybean? LOL Oh, that second POST where I quoted my own post? I don't know. I just deleted it. I wonder what happened to this guy? its weird sometimes we look forward to a reply after helping people but its okay I guess!I rather suspect ENGLISH is not the original poster's first LANGUAGE. I wonder what the web page looks like?We'll just have to keep wondering I guess!
1674.

Solve : New Page Generation : HELP!!!?

Answer»

http://photos-p.friendster.com/photos/04/18/30778140/1_547450374l.jpg" border="0"/>

my question is.., how to generate new pages in php,., LIKE the PICTURE above.?
Help me please.,.hey.,. bannana97.,. the photo you are using is a picture from my friendster photo album.,

and if that is your problem.,. well its so easy., yet it takes three hours for me to figure out the code.,.

just search for 'php pagination'., that is the rigth term., not new page generation,..,.
Was this asked before?

Anyway... It's basically a conditional statement, like this:

Code: [SELECT]if ($num_topics >= 20)
{
echo "Page: 1, 2, ....";
}

There's probably a foreach statement there also, so it updates itself.

1675.

Solve : HTML button Frame linking?

Answer»

I have 3 frames on my web page 1 frame is for the heading another is on the side for the menu and a 3rd frame is for display. I WOULD like so that when I click on one of my HTML buttons on the menu I want the page to display in the frame next to it. My code for the buttons look like this.
Code: [Select]<td align="center"/>
<form method="LINK" action="about.html">
<input type="submit" name="about" value="About Us" style="width: 110px"/>
</form>
<form method="link" action="home.html">
<input type="submit" name="home" value="Home"style="width: 110px"/>
</form>
<form method="link" action="email.html">
<input type="submit" name="email" value="Email"style="width: 110px"/>
</form>
<form method="link" action="rates.html">
<input type="submit" name="Rates" value="Rates"style="width: 110px"/>
</form>
<form method="link" action="pictures.html">
<input type="submit" name="Photo" Value="Photos"style="width: 110px"/>
</form>
<form method="link" action="indoor.html">
<input type="submit" name="indoor" value="Indoor Jobs"style="width: 110px"/>
</form>
<form method="link" action="outdoor.html">
<input type="submit" name="outdoor" value="Outdoor Jobs"style="width: 110px"/>
</form>

When I click my buttons right now the frame my menu is in changes instead of the frame next to it I'm new to HTML buttons I ussually just use
Code:
[Select]<html>
<head>
<frameset ROWS="200,*">
<!-- LOGO -->
<frame src="mister.html" scrolling="no"/>
<!-- Nested Frames -->
<frameset cols="180,*">
<!--Lists of links-->
<frame src="links.html" scrolling="no"/>
<!--Home Page-->
<frameset cols="900,*">
<frame src="home.html"/>
</frameset>
</frameset>
</frameset>
</head>
</html>

I'd like the link buttons to open up in the frame labeled home.html any help I'd appreciate.Hi rockstar4cs!

To solve your problem you must provide name for each frames like the following code (FROM ORIGINAL):





name="frame1" src="mister.html" scrolling="no"/>



name="frame2" src="links.html" scrolling="no"/>


name="frame3" src="home.html"/>






After giving name for each frame modify your forms as shown below:

target="frame3">



I think this will solve your problem.

Jugal boro
[link removed - do not advertise]

1676.

Solve : rss reader?

Answer»

i want to add a rss feed reader to the WEBSITE i am making..i found this CODE

http://rssfeedreader.com/rss3/rss.php?url=http%3A%2F%2Fwww.moe.gov.ae%2FArabic%2F_layouts%2Flistfeed.aspx%3FList%3De9be1cc7-a79e-452a-b560-5a4c73e44343&newpage=1&chead=1&atl=&DESC=&owncss=&eleminate=&auth=&dts=&width=135&max=8&tlen=0&rnd=1&bt=3&bs=Double&nmb=&ntb=&naf=&nst=&nwd=600&nht=550&dlen=0&lstyle=-1&lc=%23000066&bg=%23FFFFFF&bc=%23000099&SPC=&ims=&tc=%23000066&ts=8&tfont=Georgia,+Serif">

it appears very nice but the news are in unreadable format...i need the feed titles to be in arabic but they look like ? ?? ?

i found another code but didnt know how to customize it to get my feed


My First Ticker!






My First Ticker!





I don't think JavaScript can read RSS files. You could display the feed in an iframe, if that would do.well, it does read the rss file but doesnt do in a good way...ive tried the the same code with different rss feed link but in english and it did work fineIf you have access to PHP, look here: http://www.w3schools.com/php/php_ajax_rss_reader.asp

1677.

Solve : A flash player that keeps playing through page change?

Answer» POSSIBLE? I have a simple flash music player that I want to play a song, but I want that song to continue even when the visitor goes to a different PAGE on the site.No, I don't think this is possible.
As soon as the user would change the page, the song would cut out, and then start again on the NEXT page.

It would work if the whole site is flash, where the page doesn't change.Eh, I didn't think so either. The only other way I COULD think of is an Iframe which I don't really like. Thanks anyway.No PROBLEM. I don't think an iFrame would work either, BTW.
1678.

Solve : Print friendly page?

Answer»

If I build a page using CSS and XHTML, will it suffice to SIMPLY assign 210 mm to the width and 297 mm to the length to make print friendly or would that cause compatibility problems with some browsers? According to this Wikepedia page on Comparison of web browsers, IE and Firefox accounted for a little over 93% of market share in March 2007. The only other browser with significant market share was Safari. So, if you could test your PAGES on those three browsers, you will have covered about 97.5% of users.

I'm sure it will work fine with IE and Firefox. I haven't used those other browsers but I'd bet those specific dimensions will work with them. And, if it doesn't work with Opera, Netscape, and Mozilla, is it worth changing your plan for the small percentage of users using those browsers?But is that a proper WAY to get a print friendly page without writing an additional CSS file?

1679.

Solve : HTML 1, 2, 3 & 4?

Answer»

I know very little HTML and I'm going to learn it. I prefer to read BOOKS so I am interested in the "HTML for Dummies" books. But there are four different one's. "HTML for Dummies" 1, 2, 3 & 4. The most recent book is "HTML for Dummies 4". Is there like versions of HTML or would the 1, 2, 3 & 4 just be the order of the series?

Regards,
JoshuaI wouldn't bother with Dummy books as they're full of unwanted humour and they're basically a waste of trees.

If you want to learn HTML, do it by example on W3 SchoolsThanks, There isn't really much in HTML so i don;t really need a book.

And yeah i know how bad some of the dummie books can be, i BOUGHT one on viruses and EVERYTHING in it i knew already.


Regards,
JoshuaYou might take a look at the Sams Teach Yourself series. A few years ago, I bought Teach Yourself HTML 4 in 24 hours. I found it QUITE helpful. Here's one of the books in the series: Sams Teach Yourself HTML & XHTML in 24 Hours, Sixth Edition (Paperback)

1680.

Solve : PLEASE HELP !?

Answer»

i just want to ask how to have a url like this http://mysite.co.nr/contact. how to add that /contact on the url ... please help !Dear papew!

First of all lets explain the url http://mysite.co.nr/contact. Here http is the protocol mysite.co.nr is domain name and contact is sub-FOLDER of the domain.

Now create a named as index.htm or default.htm (according to your SUPPORTED extension name) within the contact folder (if not present create the contact folder first) and test it.

Thanks and regards
Jugal Boro
[ad removed - no spam]Quote from: jugalboro on October 16, 2008, 10:30:14 AM

Thanks and regards
Jugal Boro
[Ad removed]

Please don't place ads in your posts.Quote from: kpac on October 16, 2008, 12:59:43 PM
Quote from: jugalboro on October 16, 2008, 10:30:14 AM
Thanks and regards
Jugal Boro
[Ad removed]

Please don't place ads in your posts.

Sorry! Next TIME I KEEP it mind.

Thanks for NOTIFICATION.
1681.

Solve : Cross-browser code?

Answer»

This is probably a rookie error, but: I BUILT a page for my Web site in IE 7 and sent it to the server tonight. It looks great in IE 7 but goes bananas in Firefox and Safari. Can anyone suggest a place/site to learn how to write code to acommodate the different browsers? I seem to recall it's usually an if/else function...

BTW, site is kellypchapman.com. And I searched for info on this, but only found someone having trouble making a FrontPage site work... I write my own code. Well, I'm LEARNING to write my own code.

Thanks. (and thanks to all who help RUN this excellent site.) You have used absolute positioning is your CSS. That won't affect just different browsers, but also different screen sizes!

Here is the code you have:

Code: [Select]#text {
color: white;
font-family: verdana;
font-weight: bold;
font-size: 14px;
text-align: right;
position: absolute;
top: 400px;
left: 70px;
width: 860px;
border-top: solid 1px white;
PADDING: 20 0 0 0
}

It might not be the way forward, but I'd recommend using tables to clean it up, with padding and margin attributes.

1682.

Solve : help to change a picture?

Answer»

can someone tell me how to change the picture on the profile. not the avatar, the picture on the profile betwen chat and calendarYou can't change just that one picture. It's part of the site's design.

Of course, if you get tired of seeing my pretty face up there, you can change the theme. Just click on the Profile icon, and in the left panel click on LOOKS and layout preferences. Near the top-middle of the new content, there should be a link that says "Change theme". Click on that. You can choose between the SMF and Babylon themes to get different images.LOL, someone sick of Chris' face? Hey, some people can only stand so much beauty!Quote from: CBMatt on DECEMBER 23, 2008, 04:52:43 AM

Hey, some people can only stand so much beauty!
Is that your beauty pageant entry picture? It has won a few awards and a Pulitzer, but no, my beauty pageant picture hangs proudly next to the bathroom mirror so I can GAZE into it and give it sweet kisses...Quote from: CBMatt on December 23, 2008, 03:50:31 PM
It has won a few awards and a Pulitzer, but no, my beauty pageant picture hangs proudly next to the bathroom mirror so I can gaze into it and give it sweet kisses...

Enough thank you. Quote from: CBMatt on December 23, 2008, 03:50:31 PM
It has won a few awards and a Pulitzer, but no, my beauty pageant picture hangs proudly next to the bathroom mirror so I can gaze into it and give it sweet kisses...
cbmatt dude u r DISTURBING in a gay kinda way but u and ur community have my respect.

I don't think loving myself makes me gay.LOL, what a way to leave the forum... LOL


Anyway.....

I had seen that 'looks n layout option' but I had never tried it, nice.
1683.

Solve : Help with website creation?

Answer»

I am wanting to design a website and I need some advice. The website will have forms which when users fill in, it posts it on certain sections in the site. LIKE ads. All I know is a bit of html:

http://www.pcsspolls.tk


What prog. language would it be better to do this in and should I do it manually or use a program?

Thanks for the HALP.....BTW, I am going to use x10hosting which has php and STUFF enabled....IMO, PHP would be the best and easiest language to use. It works well with MySQL too.Tghanks, could you maybe give some links and explain what imo and php are? Are they same thing or waht?IMO is an acronym - "In my opinion"!

For PHP info try some browsing thru Google - there is much info out there. PHPMyAdmin is a useful tool for databasing too.

Quote from: ChrisXPPro on October 17, 2008, 06:52:31 PM

IMO is an acronym - "In my opinion"!

LOL

Quote from: Mr. Google on October 16, 2008, 07:34:52 PM
Tghanks, could you maybe give some links and explain what php is?

Try W3Schools for info on PHP.
For a free testing environment, download XAMPP. If you WANT help with anything, ask away to your heart's content.

You could also use ASP, but "in my opinion" , it's harder to LEARN.
1684.

Solve : wrapable tags (CSS related)?

Answer»

Hey, I've been working with and

tags and am a LITTLE upset by the fact that these tags don't WRAP to the text inside them. What I mean by that is that if I were to apply CSS elements like border or background color to a p or div TAG, the border or bg color will stretch across the entire page instead of just ending where the text inside them ENDS. HOWEVER, I have noticed that all my A HREF tags do, in fact, wrap around there text (which is a very convenient) when CSS styles are applied, and I was wondering if there were any other HTML tags that contain this useful feature as well.

Thanks in advance
MJUse display: block display: inline on the object in question or on the PARENT object.

If that doesn't fix it, your HTML code isn't proper.

More info

Or show your code here.thanks, I'll try that out as soon as I can.

1685.

Solve : background problem?

Answer»

I used repeat Y scroll with a background I made problem is it works but 1/3 of the page on the right side of the web page is white. Why isnt the repeat Y covering the entire page I realize my coding is sloppy but I'm new could somone tell me why the repeat Y code isnt coving the entire page with the background I put in?
I underlined where I put in the repeat y scroll any help would be great thank you.




Code: [Select]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<table align="CENTER" height="700px" width="1050px" border="1" cellpadding="0" cellspacing="0"/>
<tr>
<td align="center" valign="top"><img src="LOGO.jpg" alt="logo" height="130px" width="440px"></td>
</tr>
<tr>
<td>
[<body style="color: rgb(82,64,0); background: white url(bar.jpg) repeat-y"onload="MM_preloadImages('bulb.jpg')">
<table align="right" border="1" height="700px" width="865px"
</td>
<td align="left">CHRIS</td>
</tr>
</table>





<table align="left" border="5" background="side.jpg" height="900px" width="170px" cellpadding="5" cellspacing="0"/>
<tr>
<td align="center" valign="top"/>
<form method="link" action="about.html">
<input type="submit" name="about" value="About Us" style="width: 157px; height: 40px" />
</form>
<br/>
<form method="link" action="home.html">
<input type="submit" name="home" value="Home"style="width: 157px; height: 40px" alt="Home Page"/>
</form>
<br/>
<form method="link" action="email.html">
<input type="submit" name="email" value="Email"style="width: 157px; height: 40px"/>
</form>
<br/>
<form method="link" action="RATES.html">
<input type="submit" name="Rates" value="Rates"style="width: 157px; height: 40px"/>
</form>
<br/>
<form method="link" action="pictures.html">
<input type="submit" name="Photo" Value="Photos"style="width: 157px; height: 40px"/>
</form>
<br/>
<form method="link" action="indoor.html">
<input type="submit" name="indoor" value="Indoor Jobs"style="width: 157px; height: 40px"/>
</form>
<br/>
<form method="link" action="OUTDOOR.html">
<input type="submit" name="outdoor" value="Outdoor Jobs"style="width: 157px; height: 40px"/>
</form>
<tr>
<td>
<p align="center"
<a href="example.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('bulb','','bulb.jpg',1)"><img src="bulb1.jpg" name="bulb" width="124" height="125" border="0" id="bulb" /></a></td>
</p>
</tr>
</tr>
</table>


</td>
</tr>
</td>
</td>

</table>



</table>
</body>

</html>

Looks like some Dreamweaver code in there - anyways - you need to apply an ''x'' parameter to your background - plus maybe using a fixed width and tailoring your bg image to suit.

In css for instance in your body setup you might have....

Code: [Select]background:url(images/bg3.jpg) repeat-x top center #ffffff;
Or something similar depending how you want your bg to behave. You can set up both x and y in your css.

I can't actually spot the code you refer to at a quick glance.

1686.

Solve : Hello, can anyone help newbie with web hosting??

Answer»

I've just begun building my first web site, which wasn't too hard considering I'm pretty FLUENT in XHTML and CSS, however, now that I want to GET it up onto the web I feel like I've hit a brick wall. Do you recommend any sites that a have a tutorial or two on hosting small, hand-coded sites? Or PERHAPS you have your own methods ! Either way, I've noticed there's a lot of smart people here so any help is appreciated.

Thanks for your time,
IGYou can sign up with 110mb. They offer very decent hosting for free. Uploading is easy too, as long as you keep one of the files named index.html otherwise it doesn't seem to work. (Haven't really looked into it) 110mb is awesome.
My site is hosted there.
It's free hosting, go to the site as linked to by Raptor to see their impressive list of featires.
the only 2 drawbacks are that your site is called username.110mb.com, rather than yoursite.com, and you have to have a working homepage up within 15 days of registration.
Hope that HELPS you, if you run into issues then post back, I do have experience with 110mb as stated.Thanks guys!

Ok, I created an account there.. now what ? What's all this PHP and SQL stuff I keep seeing? And what's this program they want me to download? I only have an index and a CSS document at the moment, but I plan making many more subpages and images for upload later on. What do you SUGGEST I do first? Thanks

MJYou only need to upload .html and .css files, SQL and PHP are different languages that you do not need require nor have to master to use their service.

Thanks alot for your help.

1687.

Solve : Need a place to host a swf file?

Answer»

Okay, so... without purchasing a domain and server space, i need to find a place to host a small .swf FILE for a flash music file. I am on freewebs but when i put the code into a MYSPACE profile, it doesn't work. I think that it is because myspace blocks freewebs links, causing the file to not FUNCTION. but wherever i put this think, i need to be able to update it. So does anyone know a place?Youtube?I haven't used this but I thought it seems like a possible solution for you: http://www.mydigitallife.info/2006/01/10/free-file-and-image-hosting-at-2and2net/ Scroll down the page to find the link to 2and2.netHave you tried Windows Live SkyDrive?alright i got it. that 2and2.net place works FINE... other than I had to change the links in the file, but oh well. thanx all. Oh, and I have a question, can you even upload interactive .swf's on youtube?There's one specifically for Flash files at http://MegaSWF.com.

I think YouTube only allows SWF files formatted as videos.wordpress.com seems to be a good choice, and I don't know if blogspot.com accepts flash upload or not.

It's called MediaFire.

I've used this site for hosting files on FreeWebs.com . It's guaranteed to work.

1688.

Solve : web design database?

Answer»

ok im going to MAKE a WEBSITE for the new PET STORE in my town and i want ppl to be able to order stuff for delievery and/or pick up(mainly pick up) but how would i go about doing this?


P.S. i feel lost in this somewhat new and scary placeBuy a web store PACKAGE which has been pre-built. All you'll have to do is provide a hosting address and contents.

I'd really be disturbed by selling animals on-line, though.. the animals wont be for delievery but the other stuff will

1689.

Solve : PHP calculating ages using date of birth.?

Answer» HI, I need to FIND out how to calculate the age of users using the year, month and day of birth. I have the year SET up, mainly because it is so easy to USE. But I have no clue how to set up the day and month part to get the age, is their an algorithm for it? or a FUNCTION?Can you post the code you have so far?

Are you storing the values in a database? Because you could also use JavaScript.
1690.

Solve : Bookmarking and searching?

Answer»

Hello

i am developing a school website and i want to add a BOOKMARK button and also a search within the website button...i use frontpage 2003 and i have tried several code but they didnt work..

this is one of the codes i tried

<a href=index.html#" ondragstart="return false" onclick="window.external.AddFavorite(location.href, document.title);return false" onmouseover="window.status='Add to Favorites';return true">BookMark [/url]Most of that code is not needed.

Add this to the head of your page:
Code: [Select]<script type="text/javascript" language="javascript">
function addBookmark(title, link)
{
window.external.AddFavorite(link, title);
}
</script>

Add this where ever you want the link:
Code: [Select]<a href="#" onclick="addBookmark('Name of Site', 'http://www.mysite.com/');">Add Bookmark</a>
pretty thanks the code works fine now but i need to KNOW how to add to a button....and PLZ, dont discard my Search button question tooOops, sorry I missed your second question.

Is it that you want to have a button to add to bookmarks?

In the , add the same code as above, and in the , add:

Code: [Select]<input type="button" onclick="addBookmark('Name of Site', 'http://www.mysite.com/');" />
For the search... Is it a search ENGINE you want on your site? If so, I'd recommend Google Custom Search.the bookmark button work fine but can i add the code to a shape that i already created?
In the first example:

Add this to the head of your page:
Code: [Select]<script type="text/javascript" language="javascript">
function addBookmark(title, link)
{
window.external.AddFavorite(link, title);
}
</script>

Add this where ever you want the link:
Code: [Select]<IMG src="path/to/shape.gif" onclick="addBookmark('Name of Site', 'http://www.mysite.com/');" />

thanks a lot for the help both of them works fine now
thanks again

No PROBLEM. Glad you got it sorted.

1691.

Solve : php examples for beginners?

Answer»

i am the PHP beginners. if any GUY has the urls of php examples, plz SHARE links
This is a SIMPLE PHP tutorial hope that helps.

FBthanks manhttp://www.w3schools.com/php/ you can also visit www.tutorialized.com

1692.

Solve : image in JS code?

Answer»

hello again


ive GOT this calendar javascript file works beautifully but i just want to ADD an IMAGE bellow the calendar ..ive TRIED but i messed up the code

plz help



this is the image



and js file is attached


[attachment deleted by admin]

1693.

Solve : Audio types for website?

Answer»

Our church's website has a multimedia page. We have some sermons posted for listening. It takes 2-4 min. to download to real player.

These were created as a .WAV file and then stored on a audio host site. I was told that if they were .MP3 it would make the file smaller and shorten the download time.

I converted a file from .WAV to .MP3 and the 50mb file BECAME 72mb. So what is better? .MP3 or .WAV?

Here is the page http://theofbc.com/audio.aspxWindows Media Player will play .WAV, so why download Real Player?

So, your conversion did not work the way you expected, right? You heard it would reduce file size but you got larger files. I don't know what the general OUTCOME of such conversions should be, but what software did you use for the conversion? Have you experimented with settings in the software which allow you to specifiy settings that affect the file size of the final product? Quote

Windows Media Player will play .WAV, so why download Real Player?

When someone cliks on the link for the audio file, it will play in whatever player they have as a default on thier computer. I said Real Player only because that is my default player. The issue and the question is the same no matter what the player.

Quote
...what software did you use for the conversion? Have you experimented with settings in the software which allow you to specifiy settings that affect the file size of the final product?

A freeware called SC Audio Converter. There is not much in the way of settigs. I just assumed by everything that I read that a .MP3 file would be smaller than a .WAV file w/o losing quality. After all, they don't make .WAV CDs.

Is there a way to make my files smaller w/o losing quality. These are only Voice no music.Your assumption is incorrect. There are a few variables that determine the size of your MP3 file.

1: Length of track.
2: Sample rate (project rate, bit rate) whatever your program calls it.

The first is obvious, the second deals with the compression rate that the MP3 is created with. The rate DIRECTLY affects the quality of sound, and size of file. To adjust the size of the file I would suggest doing three things.

1: Trim the track down some.
Get rid of the long periods of nothing that eat up the track time. Super long pauses, lead in time, lead out time (don't remember if that is correct term), and spots that don't make any sense or blunders. I personally use a program called Audacity. It is free and very powerful. Please refer to their site for questions about the software.

2: Adjust the quality.
When publishing the audio track you should have an option to change the bit rate of the file. It goes something like this:

128,000Hz
96,000Hz
48,000Hz
44,100Hz

and lower, though I would not suggest it, once you start getting that low the quality gets really bad. Most people can not really tell the difference between 128 - 96 but there is a noticeable difference from 96 - 48. The higher the rate the better the quality and the larger your file becomes.

3: OFFER a choice.
Sometimes due to web space issues this option is not really a good idea. If space is not an issue try publishing at a high quality like 128 and a lower quality like 48 and allow your visitors the ability to choose what quality of audio they want. I always show next to the file name the size of the file so they can see the difference, something like:

Track One HQ [5.41MB]
Track One LQ [3.56MB]

You may have to play with the file a bit before you are happy with the results, but once you figure it out you just duplicate your settings for every file you publish.

Hope this helps.projectplaylist.com offers awsome playlist only problem is they have a link to their own site but if you know simple html you can look for the <a href= commands and disable them,
1694.

Solve : iFrame - Move Parent Page to top.?

Answer»

Hi all,
FINALLY I got solution after few months long looking for answer.
I would like to SHARE my solution here for people who use iFrame for their web design.

Problem description:
MAIN page with iFrame, when you scroll down main page down, the main page position remain when you update the iFrame url.

Solution:
Call JS automatic when load pages in Iframe and excute the "scrollto" at main page.

index.htm ( main page contain iFrame)
test123.htm (inline page)

index.htm, contain the following script that scroll main page to TOP:

1695.

Solve : how to publish a film on the web?

Answer»

Dear FRIENDS,

I would like to put some short films (1 minute each) that I have on my computer in VMW format, to a page on my web site.
The question is: what have I to do ? It must be easy for the visitors to watch the films on their own PC and the risult must not be "heavy", a lot of visitors hasn't the broadband and it would take time to load the page.
Thank you for your suggestions.
Regards
Benedetto
I assume you mean WMV format...
If you upload the videos to a website and have then accessible by a download link, loading the page wouldn't be a problem.Yes,I mean: windows media video, right.
The question is: how can I put this download link in the html-code? Which tag must I use?
Will the page be too heavy ( many customer use the dial-up connection) ?
Thank you very much
Benedetto
There are several ways to do this, embed the video into the web page to be played right from the site, or allow visitors to download the file, or both. First determine what you want to do. For a simple download link you use the typical href tag like this

Code: [Select]<a href="http://www.yoursite.com/movie.wmv">Download Movie</a>

Or to embed the file

Code: [Select] <OBJECT id='mediaPlayer' width="320" height="285"
classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
standby='Loading Microsoft Windows Media Player COMPONENTS...' type='application/x-oleobject'>
<PARAM name='fileName' value="http://www.yoursite.com/movie.wmv">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="true">
<param name='showControls' value="true">
<param name='loop' value="true">
<EMBED type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
bgcolor='darkblue' showcontrols="true" showtracker='-1'
showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="285"
src="http://www.yoursite.com/movie.wmv" autostart="true" designtimesp='5311' loop="true">
</EMBED>
</OBJECT>

as you can see there are also multiple options when setting the play from site embedded file. As for will the page be to heavy for the dial up users, this is just a MATTER of how large of a file you have. A couple of things to consider when working with video on your site are:

How long of a video to publish?
What quality to publish it at?
What format to publish?

Each of these will directly affect the size of the file, and that will affect the "weight" of the page.

Hope this helps you out.Hi [emailprotected],

thank you very much, it helps me. I am just starting to work.

The films are not so long and the format can be the same (wmv), I think that is the easyest to load down for the users. Isn't it ?

Best regards

BenedettoThat should be fine.real easy just join youtube upload ur video and from there it has html for you and you can paste it to your site

1696.

Solve : Tab Linking Help?

Answer»

Hello there

First of all, here is the website that is in need of help. www.viesta-gfx.co.nr

So, if you look at the left menu, and say you want to go to the...Sigs page. You have to click the actual text "Sigs' to be linked there. I want it so you can click the entire Tab, (which lights up as you can see) and be linked there.

But because of the way i set up the website, it has become very diffucult to do...and even harder to explain how i set it up.

I think the best way for me to go about this is...just upload 2 of my pages, and if someone can just do a quick tinkering and get them to link each other from the entire TABS (and text) rather than JUST the text.

Please and THANKS.

Not an expert here, but how about a rollover button or animation?
Just an idea....You have this:

Code: [Select]<td class="off" ONMOUSEOVER="this.className='on'" onMouseOut="this.className='off'" width="100%" height="14" valign="top">
&nbsp; <a href="sigs.html"> <font color="#929292">Sigs</font></a>
</td>

Try this:

Code: [Select]<td class="off" onclick="location.href='http://www.http://www.viesta-gfx.co.nr/sigs.html';" onMouseOver="this.className='on'" onMouseOut="this.className='off'"
width="100%" height="14" valign="top">
&nbsp; <a href="sigs.html"> <font color="#929292">Sigs</font></a>
</td>
oh my god...I LOVE YOU !


THankyou so so much. This thread may be closed. Nice one, Kpac. Quote from: Viesta on October 21, 2008, 07:44:44 PM

oh my god...I LOVE YOU !

Ahh... Thanks....

If you call back for more help, ask for me LOL
1697.

Solve : How to Hide your Source Code!?

Answer»

Hello,

Friends i want to hide my source so can it possible ??


Thanks & Regards,
Zahid From PakistanMost right click protect routines are not bullet proof ... particularly these days with all the browser add ons available.

I have a very OLD script shown below which I had tucked away - maybe play with that.

Code: [Select]<html>
<head>
<title>No-Right-Click-Script without Ugly Alert-Box</title>

<meta NAME="keywords" CONTENT="DHTML, JavaScript, right, click, code, Dynamic HTML, download, free, samples, applet">

<meta NAME="description" CONTENT="This little script PREVENTS people from stealing your HTML-code or your
images by clicking on the right mousebutton. This script will NOT open an ugly alert-box! In fact it does nothing
at all besides displaying a little message on the status bar. Try right clicking anywhere inside this document in
order to test the script. No configuration needed. Pure copy-and-paste. Crossbrowser.">

<script>
<!--
// CREDITS:
// No Right Click Script without Ugly Alert-Box
// by Urs Dudli and Peter Gehrig
// Copyright (c) 2000 Peter Gehrig and Urs Dudli. All rights reserved.
// PERMISSION given to use the script provided that this notice remains as is.
// Additional scripts can be found at http://www.24fun.com/fast/index.html
// [emailprotected]
// 10/12/2000

// IMPORTANT:
// If you add this script to a script-library or a script-archive
// you have to insert a link to http://www.24fun.com/fast/index.html
// right into the webpage where the script will be displayed.

// CONFIGURATION:
// Go to http://www.24fun.com/fast/index.html, open category 'utility' and
// download the script-file with step-by-step instructions for easy configuration

function right(e) {
if (document.layers && (e.which==3 || e.which==2)) {
window.status="NO RIGHT CLICK ALLOWED!"
return false;
}
else if (document.all && (event.button==2 || event.button==3)) {
window.status="NO RIGHT CLICK ALLOWED!"
openclosewindow()
return false;
}
}

function openclosewindow() {
var windownews=window.open("", "", "status=no,location=no,toolbar=no,menubar=no,resizable=no,scrollbars=no,width=50,
height=50,
top=20000,left=200");
windownews.close()
}
if (document.all) {
document.onmouseup=right;
window.onmouseup=right;
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=right;
}
//-->
</script>

</head>

<body>
<form>
<font size=1 face=Verdana color=000000><ul><b>No Right Click Script without Ugly Alert-Box</b><br><br>
This little script prevents your visitors from stealing your HTML-code or your images by clicking on the right mouse
button. This script will NOT open an ugly alert-box. In fact it does nothing at all besides displaying a little message
on the status bar. Try right clicking anywhere inside this document in order to test the script. Crossbrowser.
No configuration needed. Pure copy-and-paste.<br><br><br>

<script src="http://www.24fun.com/affiliates/textinfospacemany.js"></script><br><br>

<b>Configuration:</b><br><br>
Add the following code between <b>&lt;head&gt;</b> and <b>&lt;/head&gt;</b> of your webpage:<br>
<input type=button onClick="this.form.code1.focus();this.form.code1.select()" value="select all" style="font-size:8pt"><br>
<textarea name="code1" cols="70" rows="10" style="font-size:8pt">
<script>
<!--
// CREDITS:
// No Right Click Script without Ugly Alert-Box
// by Urs Dudli and Peter Gehrig
// Copyright (c) 2000 Peter Gehrig and Urs Dudli. All rights reserved.
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at http://www.24fun.com/fast/index.html
// [emailprotected]
// 10/12/2000

// IMPORTANT:
// If you add this script to a script-library or a script-archive
// you have to insert a link to http://www.24fun.com/fast/index.html
// right into the webpage where the script will be displayed.

// CONFIGURATION:
// Go to http://www.24fun.com/fast/index.html, open category 'utility' and
// download the script-file with step-by-step instructions for easy configuration

function right(e) {
if (document.layers && (e.which==3 || e.which==2)) {
window.status="NO RIGHT CLICK ALLOWED!"
return false;
}
else if (document.all && (event.button==2 || event.button==3)) {
window.status="NO RIGHT CLICK ALLOWED!"
openclosewindow()
return false;
}
}

function openclosewindow() {
var windownews=window.open("", "", "status=no,location=no,toolbar=no,menubar=no,resizable=no,scrollbars=no,width=50,
height=50,
top=20000,left=200");
windownews.close()
}
if (document.all) {
document.onmouseup=right;
window.onmouseup=right;
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=right;
}
//-->
</script>
</textarea>

<br><br>

<a href="http://www.24fun.com/fast/index.html" target="_blank">>>> Download 100's of free funscripts</a>
</form>
</body>
</html>
You can always use encryption/encoding, course it's not totally cracker proof but it will sustain the normal mundane user from stealing your source code. The No-Right-Click function is mostly used to stop people from right clicking on images and stealing them, people can still access your source code by going through the Navigation bar of most browsers((IE):View->Source). Of course that method of trying to block people from stealing images is not fully cracker proof either, for anyone that can read a little HTML code. But look into encryption/encoding, I made my own sort of encryption with a combination of Ascii and my own method in Javascript, of course I'm not going to show you that source code . But Ascii encryption is the most common method and will prevent the normal mundane user from stealing your code, just do a google search of "Ascii Encryption HTML", or something along the lines of that. That should help!encryption is NOT obfuscation. converting text to the equivalent HTML character code (A etc...) is obfuscation. The same method used to create the ASCII equivalents can be used to reverse the process quite easily.


SECURITY by obfuscation is not security; it's just foolishness.Quote from: BC_Programmer on December 29, 2008, 04:23:37 PM

encryption is NOT obfuscation. converting text to the equivalent HTML character code (&#65; etc...) is obfuscation. The same method used to create the ASCII equivalents can be used to reverse the process quite easily.


security by obfuscation is not security; it's just foolishness.

Like I said, it is not cracker proof meaning anybody who knows how to convert Ascii back to the original HTML code that we as users can read, can easily steal and use the source code, There is no actual way to hide the source code of an HTML document. So if you have a better method of making the source code of an HTML document more read proof, because you obviously cannot hide it, than have at it. And believe it or not it's not foolishness, it does prevent the everyday web designer who has basic web designing skills from reading through the Ascii code and taking what they may want, plus there is a lot of people who out of pure laziness, don't even want to go through the process of converting Ascii back to HTML text. Like I said, I also use my own method of encryption through a combination of Javascript and Ascii. There is no fool-proof way to hide the source code though, so if you think you have a better solution than please do tell .
I've seen it used effectively. It could easily be applied at most sites with no worries.

Another method is to place most Source code within separate JS and VBS files, placed in a separate folder. (or anywhere, really). while the browser downloads the
scripts along with all the rest of it, it can be more difficult to search through a cache
for a temporary file when you only know the extension.

I wasn't saying anything against your methods; I was merely saying that, as you said, there isn't a built-in way to do encryption up to and including page interpretation; the best we can do is make it difficult, which is usually enough. the question inevitably comes up as to wether it's worth it, and that depends wholly on the code being obfuscated.

Another wholly different route would be to try to place all code possible on the server-side; permissions can be set to completely disallow access to the codeQuote from: BC_Programmer on December 29, 2008, 10:29:50 PM

I've seen it used effectively. It could easily be applied at most sites with no worries.

Another method is to place most Source code within separate JS and VBS files, placed in a separate folder. (or anywhere, really). while the browser downloads the
scripts along with all the rest of it, it can be more difficult to search through a cache
for a temporary file when you only know the extension.

I wasn't saying anything against your methods; I was merely saying that, as you said, there isn't a built-in way to do encryption up to and including page interpretation; the best we can do is make it difficult, which is usually enough. the question inevitably comes up as to wether it's worth it, and that depends wholly on the code being obfuscated.

Another wholly different route would be to try to place all code possible on the server-side; permissions can be set to completely disallow access to the code

Yes you are right about that, but don't forget that's not fool proof either, someone can easily read through the source code, find out what the names of the script files used on the web page, and open up their temporary internet files and view the source of the scripts that way as well. Plus you cannot encrypt the source code of the scripts when you save them seperately as their own file. I don't really think the poster wants to totally disallow access to the files using permissions on their web server, I'm pretty sure they want the files visible to a user when they pull up their site, I think that's why they asked if there was a way to hide the source code. But I still believe best way to do so, is to encrypt the source that way it makes it difficult for a web designer to pull what they want from the source code of the HTML document. That's just my opinion of course though .ChrisXPPro, can you edit your first post and split up those long lines that are causing a need for massive horizontal scrolling to read the posts in this thread?Wow - sorry about that - I guess I hadn't checked that out when I posted! I hate the horizontal scroll too - fixed it now.
You could encrypt your sourcecode.........
http://www.dynamicdrive.com/dynamicindex9/encrypter.htm
But it can be decrypted again...

Let's face it, there is no actual way to hide the source code.

Quote
You can't. The browser needs the HTML to render the page and there is no way to disable the view source item in the menu. And no-right-click scripts are DISHONEST, show arrogance, and are worthless because a view source item is usually in the Edit menu, which does not need to be right-clicked.

http://www.webdeveloper.com/forum/showthread.php?t=89947
http://www.programmingtalk.com/showthread.php?t=21985sure, it can be decrypted, but when someone looks at the source, they'll just close it and move on. Personally, I don't see why anyone would really want to hide their html source..... It's just a waste of time and it isn't even real programming. If you're doing something in your code that requires everything to be hidden, use server side scripting like php or aspx instead.Quote from: michaewlewis on January 02, 2009, 11:04:11 AM
and it isn't even real programming.

This is an important point.

HTML is not a Programming language. It's a markup language.
1698.

Solve : Moving Images?

Answer»

Hey, I have made many attempts in making my own website, but have ended up using templates because of this problem!

When I place an image into a layer/table on one monitor it is in the place where I want it to be, but on another computer with a DIFFRENT resolution it is moved over slightly therefore not being in the place where i would like it to be!

Any Ideas on how to sort this problem out?

Thanks
Kev

look at www.dynamicdrive.com , free dhtml scripts

http://www.dynamicdrive.com/dynamicindex9/info3.htm Thats great, thanks, ill give it ago later and let you know!

Thanks again
KevA redirect script BASED on size is not really the answer I think. The answer is to create the PAGE so that it is compatible with all resolution sizes, down to about 800x600. I don't really think ANYONE uses 640x480 anymore. Is it possible for you to link the page so we can actually see what is going on so we may make suggestions?Ill have a go, and ill put up a link, if its ok with the mods/admins!

Thanks
Kevmonitors show web pages diffrently u cant do anything about it just try 2 do ur BEST at making ur site

1699.

Solve : How do I create an "Alternate text" on a button in Adobe Flash CS4??

Answer»

Hello,

I'm new to this but luckily GOT quite far in creating my first flash website. I noticed that there is somewhere a section for writing CODE (Actionscript 2 /3?), but it is difficult to find. I DONT even know if it is necessary go into the code editor to add an ALTERNATE text for a normal jpg-image.

Could someone tell me how to add this alternate text on mouse roll-over to appear when placing it over the image and are there ways of changing the style, for making the text that pops up larger?

Thanks, BurtonNo Actionscript is required for this. The easiest way to do this would to add the text into the OVER state of the button.

Here is an example of this: http://www.mediafire.com/download.php?wnoujfn20tmThank you, but where did you place the "i am alternate text" field?
Also, is it possible to do this just with a JPG-image (or movie clip) instead of a button?Go into editing mode for the button, then click on the "OVER" FRAME in the timeline. Easiest way to add alt text to a pic of movie clip would be to put an invisible button under or inside it and use the same way I did. There may be a way in actionscript, but I'm not aware of the code.

1700.

Solve : linking web pages togater with password security?

Answer»

Hi,
Greeting.
I am NOOR. i want to know simply some codes of HTML.
eG: i have my Home web page. and ANOTHER SECRET web page, and now want to link my another web pages as linked with Home page. as hyperlink, and users visit my home page but when they TRY to access to my next secret hyperlinked PASSWORD secure page should ask for password. on the click for hyper pages should ask for password simply please show me how to hyperlink a pags with password the next page with home page... --&GT;(

Waiting impatiently
If your webhost supports htaccess, you can use this:
http://www.elated.com/articles/password-protecting-your-pages-with-htaccess/