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.

651.

Solve : Tables :/?

Answer»

I'm MAKING a website with TABLES and for some REASON, when I try to make the News part, the text on the left side of the table which is how I want it, but it is centered in the middle and I want it to go to the top. Can someone tell me how to fix this?:USE valign on the td.

Code: [Select]<td valign="top">
</td>

There's a more modern way to do it with style and css but I don't know it off the top of my head.I don't care as LONG as it works and it does! Thanks a lot I really appreciate the help!

652.

Solve : Help inserting a thumnail picture of a webpage into another web page?

Answer»

Hi. i have built a webpage, and im trying to show that page on another webpage. How do i get it into thumnail view? Please help, thanks.You can't do that, unfortunately.

What you can do is take a screenshot of your website, save it as an IMAGE, and insert that on your webpage.You probably want a thumbnail of the web page only, not the WHOLE browser window.  Am I right?  If so, I suggest just TAKING a SCREEN print, cropping it to get only the web page, and then resizing it.  Easy Thumbnails is a nice freeware tool to use to create thumbnails from LARGER images.

653.

Solve : Creating Dynamic Web Pages without toolbars?

Answer»

Hello,
            I have a new problem again. Now it is with dynamic asp.net web pages. Well the problem is I've an application form that has to be filled and SUBMITTED by the USERS. Whenever the user click on submit button, the DATA has to be saved in database and a new dynamic web page should be created and displayed with some relevant application. The dynamic page shouldn't have any toolbars except the address bar.

            My form is currently saving the DETAILS in database but i don't know the further operation i.e., creating new form and displaying it without toolbars.
 
            I'm using Microsoft Visual Web Developer 2008 Express edition
            The code behind language is C#

Please help me in SOLVING my problem......

654.

Solve : Why isn't the php session working on the subdomains??

Answer»

Hi. I am making a website builder, and for some REASON, when I make a session on site.com, then the session doesn't work on builder.site.com.

The CODE I am using in front of every page is:
Code: [Select]session_set_cookie_params(1440, "/", ".red-host.org", false, false);
session_start();
HEADER("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");

And the code that MAKES the session is:
Code: [Select] session_set_cookie_params(1440, "/", ".red-host.org", false, false);
session_start();
$_SESSION[$_SESSION_NAME]="$_POST[username]";
Any advice or help would be appreciated. Thanks.It's because the session_start() function uses a COOKIE for authentication, and the cookie is only stored for the builder.site.com path.Oh, so how can I fix this issue?

655.

Solve : I need the HTML code to repeat a song in an embeded music player?

Answer»

Below is HTML of a song from "EZ-tracks.com" which plays once in my blog.   I want to repeat or loop the song but have been unable to discover a way to do so.   EZ-Tracks Support has been unresponsive after 3 contact attempts.  Can anyone HELP?

Code: [Select]<div style="float:left;"><param name="movie" value="http://stream.ez-tracks.com/player_compact.swf?
songid=29523&AMP;uid=0|764680725&t=1" /><param name="wmode" value="transparent" /><embed SRC="http://stream.ez-
tracks.com/player_compact.swf?songid=29523&uid=0|764680725&t=1" width="27" height="34" quality="high" wmode="transparent"
pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"
bgcolor="FFFFFF"></embed></div><span style="float:left; margin:8px 0 0 5px;"><FONT size="2">Now Playing: <strong>Save The Last
 Dance For Me</strong></font></span>
<div style="clear:both; float:left;">
<font size="1"><a href="http://www.ez-tracks.com/showArtists-OrigArtist-Emmylou Harris.html" style="text-decoration:none; font-style:italic;">Free Emmylou Harris Songs </a> |
<a href="http://ringtones.ez-tracks.com" style="text-decoration:none; font-style:italic;">Free ringtones</a> at EZ-Tracks.com</font></div>What about if you deleted the line from and including the Now Playing etc.. No idea tbh here, but taking the reference out may work? to loop it. Thinking about the reference to ez tracks?Tim:

Thanks very much for responding.  The suggestion you made involves only visible text shown on the page with the player control and does not involve functioning of the player.

DAVE

656.

Solve : Breadcrumbs?

Answer»

OK using Joomla just to start. I USE breadcrumbs in my 'main' menu which work fine as they GIVE a link back to previous pages.
Problem I have is the rest of my site will not accept breadcrumbs.. this is an issue when I have a few hundred articles that the user can view but then has to go back to the homepage to view ANOTHER. If you need more INFO, I will provide it.
Any help much appreciated,
thanks in advance

657.

Solve : SSO Solution...Need Urgent Help?

Answer»

I dunno if I'm POSTING in the correct forum but I need urgent help. I'm currently a student doing my FINAL year project in school. I've been task to come up with a prototype/solution for a Single Sign On(SSO). I've been RESEARCHING for about 3 weeks now but I can't really comprehend solutions found on the web. I currently have 2 computers to WORK with, software available readily on hand are Windows Server 2008, SQL Server 2008 developer edition, visual studio 2008. I'm only familiar in VB.NET and SQL Database codes and basic java codes. Can anyone be able to give me a step-by-step solution on how I should do it because my programming is weak too. I have not started anything yet because I'm still in confusion. My project work time is only left with 3 monthsPlease refer the following link

http://msdn.microsoft.com/en-us/library/ff184050.aspx

I just completed my project work on logins using visual web developer 2008 express edition, Microsoft sql server 2008 express editions......

I learnt from msdn and completed my project successfully. You are using Visual Studio and there is inbuilt msdn library , you can use help utilities in it.....There is option "How do I" in help menu. Please go through it...

658.

Solve : Does anyone know some really good free websights??

Answer»

or are there any great deals on buying one? im trying to get one for my work.

i know webs .com is good but i NEED somethin better and easier to useAre you talking about a host or a sitemaker?heh... "websights"... that's a new one.

since you want it easier to use then "webs.com", it sounds like what you want is more along the lines of a site builder, as kpac mentioned. most free hosts come with a relatively crappy WYSIWYG editor, but you can also download and buy a variety of applications (frontpage, dreamweaver, heck, even Visual Interdev (although I doubt you'd be able to buy it anywhere these days).

On the other hand- if your getting one for your work- is it going to be a site for the company? that would be rather more involved and would involve registering a domain name, buying hosting, etc- and then you get to deal with installing (assuming you don't want to mess around with that ICKY HTML, CSS, PHP, etc) some sort of Content management system, which one you choose would depend on exactly what type of content you will have (technically forum and blog SOFTWARE, like SMF,VBulletin, Wordpress, and Squarespace all count as a sort of "content management" system, but with some specialized for specific types of content.you might try this website hoster / maker You can make websites for free in flash with their tools. Personally - I'd recommend free webhosting and installing a CMS such as Drupal, Joomla, Wordpress.  They aren't that easy to use but results are VERY professional and advert free (Depending on webhost)

I'm sorry for advertising (Mods: remove if applicable) but as a free Webhost - I use www.atbhost.net - they are very good.

The CMSs are here in ORDER of ease of use (In my opinion) - Easiest first:

Wordpress (Designed for blogs but can be used for websites)
Joomla
Drupal

And after all - It's free so you have nothing to lose - There are tutorials on the web for installing CMSs - Google is your friend 




Quote from: 2x3i5x on May 14, 2010, 12:09:48 PM

you might try this website hoster / maker You can make websites for free in flash with their tools.

True but remember that not everyone can browse flash websites - Some don't have flash installed, some devices e.g. Mobile/Cell Phones don't support flash and that some older and lower end PCs really struggle with flash.
659.

Solve : web design problem?

Answer»

hi i want to CREATE a electronic slam book in my blog....
is it possible?
is there data STORAGE in my blog......
my all friends can use this book on my blog ...?
if yes tell me what to do and how to do please....!Well, the thing you are talking about is something RELATED to databases and PROGRAMMING. Though it can be embedded into your blog, but you will need to have some independent database. Blogs like blogger and wordpress do not provide such TYPE of solutions...

Thanks.

Kind Regards.

660.

Solve : music help?

Answer»

If I put a spound file on a web page that is
386 kB in size is this to big for a background SOUND to play??
It is an MP3Yes. Much to big for a background sound.
Make a very short sample. The add a link so that the user can click to hear the whole thing. If she wants to.
a better solution is to not have background sound at all.

Besides, I don't think MP3 can even be used as a background sound.What file format can be used  WAV   and what??A lot of people have  Flash or Shockwave in there web browsers.

Can I code an  MP3  file to auto play in a web page  for that PLAYER???

Almost everything you need Flash or Sockwave for on the net  so if I can code my sound file to  use them to play it it will be able to.

My MP3 file for background sound will be 5 SEC. Quote from: BC_Programmer on April 26, 2010, 02:19:39 AM

a better solution is to not have background sound at all.

Besides, I don't think MP3 can even be used as a background sound.
It can, I did it once on an old site I had.  If I remember CORRECTLY I had to embed a player in the page though.  It took a crap load of tweaking to get it to load anywhere near quickly, and finally had to go with a really low bitrate recording.  It was so terrible that I yanked it pretty quickly. Quote from: nymph4 on April 26, 2010, 11:29:42 AM
What file format can be used  WAV   and what??
MID is the format normally used for sound embedded in a web page.  Here's a good reference: http://www.webreference.com/js/column20/embed.html and it has sound embedded in it.

Note: Firefox and Chrome would not play the background sound for me; they displayed a popup saying "Your browser can not play sound".  Only IE worked and it prompted me to allow the Windows Media Player plug-on to run.  the element has not, nor has it ever been, a standard HTML element; as evidenced by it's non-support  in msot every browser aside IE.

http://www.w3schools.com/media/media_browsersounds.asp

Quote from: BC_Programmer on April 27, 2010, 06:41:02 AM
the <embed> element has not, nor has it ever been, a standard HTML element;

It's covered in many books on HTML and online HTML references.  So, I have to say it is a standard HTML element.  It's just not supported by some browsers, which is a compelling reason not to use it. Quote from: soybean on April 27, 2010, 06:58:23 AM
It's covered in many books on HTML and online HTML references.  So, I have to say it is a standard HTML element. 

I'm afraid that doesn't add it to the standard.

HTML4 tags:

http://www.w3.org/TR/REC-html40/index/elements.html

the embed tag was first used by Netscape NAVIGATOR. IE added it for compatibility with it.

Note that with IE8 it barely WORKS at all- requires clicking through several prompts, and refuses to play until the user clicks play in the player.

EMBED is supported by IE and browsers based on it. it is not a standard.

Also, that page is outdated anyway:

Quote
Created: May 31, 1998
Revised: May 31, 1998


Would you be able to use a Windows book from 1998 to work with windows 7? Quote from: BC_Programmer on April 27, 2010, 07:15:13 AM
Would you be able to use a Windows book from 1998 to work with windows 7?
Of course not.  I did not notice the date.

Quote
I'm afraid that doesn't add it to the standard.
Then, what does?  The book I'm looking at was used in a web design class at a local college.  It's copyright date is 2007, which was a revision of previous editions.  So, it's not the most current but not really very old, either; of course, all browsers have gone through multiple version updates since then. The book even says "currently remains well supported by all the popular browsers."  However, the book also says, "Today's standard is the tag with the data attribute, and we recommend that you use it in lieu of ." Quote from: BC_Programmer on April 27, 2010, 07:15:13 AM
Would you be able to use a Windows book from 1998 to work with windows 7?
You mean for something useful right The confusion here is that you're thinking of "De facto" standards, whereas I'm referring to De Jeure Standards. Quote
Then, what does?
The W3C decides, with the help of many HTML groups on the Web.This is what I ment.
A lot of people have  Media Player   Real Player  Winamp   and many many more.

And wen you have a Midi File on a web page as background sound  there player plays it.

So why would it not work if I encode MP3 file???
661.

Solve : Using DB at the same time?

Answer»

I'm using MySql 5.0 on Windows XP. I KNOW that it is possible to open two DIFFERENT database at the same TIME, what I don't know is if it is safe? ThanksIt seems to be an alright IDEA, based on search results.

http://stackoverflow.com/questions/274892/how-do-you-connect-to-multiple-mysql-databases-on-a-single-webpageThank you very much for the QUICK reply.

662.

Solve : Uploading WebPage?

Answer»

Hi Guys ...

I Here Need With Uploading Webpages

Means I Could UPLOAD A SINGLE .html FILE To Any Site But It Consists Of Components Such As Javascript , Images , ETC...

How Should I Upload That Stuff Attached To Html File



Can't I Compile All These Components In 1 Single Html Or Any Other Quote from: the_mad_joker on March 31, 2010, 10:00:17 AM

Hi Guys ...

Can't I Compile All These Components In 1 Single Html Or Any Other

No, you can't. you can zip them if you're passing them along to someone else or upload all of them.

You can compile them to a compiled HTML file (CHM) but that won't even come close to working, SINCE WSS is for IBM websphere, and is a server-side script.Perhaps you could put the JS embedded into the HTML i.e.
663.

Solve : Flas help?

Answer»

Does anyone KNOW how to make Flash Videos or AUDIO  in  Power Builet Presanter??

It is a free program for making free Flash stuf  just BAIC THINGS.

I can find anything about Flash Making it  on the web.


I just get things about what Flash is

I never used any Flah creator ever so I need to know how to say  make my Videos  and then after I have the file what to do??

Like I know after I make an Animation GIF  just use  the
I know nothing about Flash and can't find any info  on how to make them and what to do with them?http://www.google.com/#hl=en&source=hp&q=powerbullet+presenter+tutorial&aq=2sx&aqi=g-sx8g1g-sx1&aql=&oq=power+bullet+presenter+&gs_rfai=&fp=a537d44c67dd0bd9

664.

Solve : HTML Picture Gallery continues loop????

Answer»

I am new to HTML and am trying to figure out a way to make my GALLERY of PHOTOS become sort of a loop (when you get to the last photo it goes to the first & if you PRESS on the left arrow it goes back to the last photo....

I am not sure how to do it and was hoping for some help....
 So far this is what I have there is a total of 11 PICTURES but I am not sure how to get it all working is there anyone that could help with some code to figure this out?

 leftArrowURL          stores the URL of the left arrow glyph
 prevURL               stores the URL of the previous page
 imageStatusString     shows current image number and total
 rightArrowURL         stores the URL of the right arrow glyph
 nextURL               stores the URL of the next page

My code LOOKS something like this...


 leftArrowURL=${imageDir}/left_arrow.gif
 prevURL="url"
 imageStatusString="1 of 11"
 rightArrowURL=${imageDir}/right_arrow.gif
 nextURL="url"

665.

Solve : Image Transparency?

Answer»

Hello,
I'm using transparent images in my website. They are working fine in Mozilla 3.6 but while coming to Internet Explorer 6 some shaded region is appearing around the images. I'm attaching the example screen SHOTS here below.
           How can i get rid of this problem. I want to make my transparent images make visible in transparent in IE 6.
Please provide me the solution........

I'm using
Windows Xp professional,
MICROSOFT Visual Web Developer 2008 Express edition



[recovering disk space - old attachment deleted by admin]That's IE for you.

What you can do is use jQuery with pngFix.I don't know JQuery. If possible can you write the code for me....
I read some where that IE 6 does not support alpha transparency that's why it is showing like that.

I used filter property in CSS for image but it told "filter is not valid CSS property"

the image code is as follows
Code: [Select]<ul&GT;
<li><a  href="Site_Pages/Admissions.aspx" runat ="server" target ="IFrame">Home</a></li>
</ul>
the css code is like this
Code: [Select]

this code worked fine in mozilla 3.6......
#Menu ul li a {
    display: block;   
    height: 42px;
    font-size: 14px;
    line-height: 38px;
    text-align: center;
    font-weight :bold ;
    text-decoration :none; 
    color: White;
    background:url('Images/button.png') no-repeat;
}

#Menu ul li a:hover {
    line-height: 36px;
    text-decoration: none;
    color: White;
    background : url('Images/button_hover.png') no-repeat;
    cursor :pointer ;     
}
Yes, "filter" is not a valid CSS property at the moment, but I think it's being introduced to CSS3.

Here is the direct LINK to download: jquery.1.4.1.min.js (right click and "Save As")
Link to pngFix: jquery.pngFix.js

How to use jQueryThank you....

666.

Solve : Link css help?

Answer»

I think I am getting the hang of Exturnale  CSS

The page with all the  CSS  code I saved as
test.css

And every page in the Tags I put


And I have them both in the same directory?? Quote

And every page in the <header> Tags I put
<link ref="stylesheet" type="text/css" href="test.css"/>

And I have them both in the same directory??
Yes, but they don't have to be.Now one thing
 all my pages have


In the head  tags

and the page with all the  css  code that they link to in called    test.css and I have it in th same directory.

But my pages are not showing the  IMAGE as the background they all  White  and the color  should be  Black if the image can't show.

And nothing els  works right  the Text is black  should be  wight.

So I don't think I am linking to the  test.css file  right

Sould I have not  /  at the end of
      or am I missing something Quote
link ref="stylesheet"
Change ref to rel.Thanks for all you help I now use this as the  CSS exturnale code

body {
background-color:#00000;
background-image:url(wall.jpg);
background-repeat:repeat;
}
a:link {
color:#FFFF00;
}
a:VISITED {
color:#FFFF00;
}
p{
font-family:times new roman,Arial;
font-size:25px;
color:#FFFFFF;
}
h1 {
font-family:times new roman,Arial;
font-size:100px;
color:#FFFFFF;
}
And it works but it puts the same image on every html page I have and I get this.
But what if I want say one image called  leaf.jpg  just to be used as the background on just the   fall.html  page??Just add this to the head of your page, "fall.html".

Code: [Select]<style type="text/css">
body {
  background-image: url(leaf.jpg);
}
</style>
OK so if I ad


body {
  background-image: url(leaf.jpg);
}
to the Head Tag I get how this works.

Then how is this diferant or batter then if I just added an 
HTML 
to the page  you know the code that  was used with  HTML?

Or if I stick with

body {
  background-image: url(leaf.jpg);
}


It is faster to load??http://www.quackit.com/html/codes/html_background_image_codes.cfm

Stick with CSS.You could use either inline or embedded styles in this case but I think embedded, as kpac suggested, is the BETTER choice in this case.  Reference on Types of CSS Styles (inline, embedded, external): http://webdesign.about.com/od/css/qt/aatypesofcss.htmSoory what I ment to say is

Thanks for the help.

So if I put the  CSS  code in the Header Tags  for the background image  or if I use  HTML  code


Witch is  batter or what will hapen?

If I use the old       will it do something  to the page  because the rest of it is in  CSS???

Or if I use  CSS  in the head  tags  to place  the background image it will load faster???

What is going onI answered that.

Quote from: kpac on April 16, 2010, 02:00:02 PM
http://www.quackit.com/html/codes/html_background_image_codes.cfm

Stick with CSS.
Quote from: nymph4 on April 17, 2010, 11:58:15 AM
If I use the old   <BODY BACKGROUND="Leaf A1.JPG">    will it do something  to the page  because the rest of it is in  CSS???
Yes, it will display the background image in the page.  But, as the reference cited by kpac says, "This is the old way of specifying a background image in HTML, and is now deprecated (outdated and not recommended) by the W3C. Instead of using this method, you should use the CSS method ..."

Quote from: nymph4 on April 17, 2010, 11:58:15 AM
Or if I use  CSS  in the head  tags  to place  the background image it will load faster???
No, but see above quote from the reference."Or if I use  CSS  in the head  tags  to place  the background image it will load faster???" -> you mean , right? I don't know, let's ask the people here. As far as I see it, no one has yet said if the page will load faster as opposed to an external CSS file. I would say that the internal style (head) is faster because it doesn't have to go search for an external file. I might be WRONG though. Quote
I would say that the internal style (head) is faster because it doesn't have to go search for an external file. I might be wrong though.
You're not wrong. But if the CSS file is DOWNLOADED externally once, the browser will store it in the cache so it doesn't need to download it again.Then the question is: if stored in the cache, is it faster than inline style (head)?
667.

Solve : strlen($_POST["name"]>10) not working?

Answer»

Dear Friends,

I am NEW to forum and have a problem with my PHP learning. Please anybody tell me why this command is not working the way I want:

if (strlen($_POST["userid"])>10)

echo "User id should be less than 10 characters";

else
echo "Form ACCEPTED";

?>

Please tell me what's wrong with this coding. The PAGE is not showing ANYTHING at all.

Thanks in advance.

Regards.hey, It is working now with this code:

if (strlen($uid)>10)
echo "User ID cannot greater than 10 characters";
else
echo "Form Accepted";
?>

Thank you guys for viewing my problem. If you people have any other better solution, please tell.

Thanks.

668.

Solve : How do web designers get to put a portfolio of their work onto a webpage??

Answer»

How do web designers get to put a portfolio of their work onto a webpage?You mean put a portfolio of their work on their own website?  Obviously, they WOULD just create the PAGE.  Am I missing the point of your question?

If you mean, how does someone who is just getting started in web design develop a portfolio page, well, that's a different issue.  And, I think that can be a difficult hurdle to JUMP.  I think one approach would be to do few small sites for free or for a very LOW price.

669.

Solve : Rotating Banner Ad?

Answer»

I have a code for a rotating banner which works great but at the moment all it does is rotate in sequence 1,2,3,4 and over again. Is it possible to ad a COMMAND that will enable it to display randomly rather than in sequence? Any help at all would be greatly appreciated. 

Code: [Select]<script type="text/javascript">
var imgs2 = new Array("");
var lnks2 = new Array("");
var ALT2 = new Array();
var currentAd2 = 0;
var imgCt2 = 4;
function cycle2() {
if (currentAd2 == imgCt2) {
currentAd2 = 0;
}
var banner2 = document.getElementById('adBanner2');
var link2 = document.getElementById('adLink2');
banner2.src=imgs2[currentAd2]
banner2.alt=alt2[currentAd2]
document.getElementById('adLink2').HREF=lnks2[currentAd2]
currentAd2++;
}
window.setInterval("cycle2()",10000);
</script>
<a href="" id="adLink2" target="_blank">
<img src="" id="adBanner2" BORDER="0" width="468" height="60" /></a>
GooooooooogleIf you can use PHP or ANOTHER server based Script it would be better then relying on the clients javascript support.

670.

Solve : How to eliminate the necessity to CLICK?

Answer»

How can I eliminate the necessity to CLICK in order to perform this event?

Click for Music

I think it should be something on the order of:

I'm afraid that there is no real way to not have to click as far as I know. I've done extensive research into this, and it is possible to have one song in the background, there is not a way to MAKE an entire playlist play automatically without clicking. As fot the OnLoad event, that's basically for JavaScripting. I looked hard into trying to find a way to JavaScript a playlist, but found nothing.

The fact that I was UNABLE to find it doesn't mean there is no way, but if Google turns up no results in 20 minutes I get a little discouraged. If the link works when clicked on, then what you could do is have the first mp3 out of that playlist as background music for your site, and then have a that reads, "Click for more". Only problem with that is that unless the m3u is a download, you're going to have to STOP the playing music. That's not really a problem.

So, let's say you took my advice and had the first piece of music playing. The code would end up like this:

Code: [Select]<html>

<head>
<title>New Page 1</title>
<bgsound src="[insert sound file here]" loop="-1">
</head>
<body>
<script TYPE="text/javascript">
<!--
function StopMusic()
{
StopAllSounds();
}
//-->
<A href="Click" target="_blank">http://www.website.com/playlist.m3u" OnClick="JavaScript:StopMusic()">Click for more music</A>
[The rest of your site]
</body>
</html>

If you did that, adding URLs where necessary, it would allow your viewers to HEAR a piece of the music while offering them more if they like it. If this is what you want to do, you should really think about running a streaming audio server.

671.

Solve : couple questions?

Answer»

question one: I have iframes on my page and i have WALLS on the right hand side was was wondering how i can get them to scroll like this EXAMPLE: (http://www.kingsofthecourt.com note the scrolling walls on the side)

question two: I have a main content and was wondering how i set link on my main page that will only change the content in the one iframe without reloading the whole page (EXAMPLE: http://www.prosportsnation.com/index2.html if you click on articles only the content in the box changes)

This is my site im working on http://www.sports-nation.net/SNLAYOUT/NEWLAYOUTHTML.htmlcan anyone help me?Judging by your site it looks like you've answered at least the first question.  Javascript is the main answer.

One point about IFRAMEs though: they are not WELL supported in browsers, and should be avoided if at all possible.  I'd rather use javascript and HIDDEN DIVs for this kind of effect.

672.

Solve : suspect java code --> need help!?

Answer»

hi,
I have a problem, someone broken one of my web pages (I don't know how) an modify index.html, I find this code in my index html:

<script language=JavaScript>
function sban(x)
{
var l=x.length,b=1024,i,j,r,p=0,s=0,w=0,t=Array(63,9,59,58,33,23,27,10,25,2,0,0,0,0,0,0,51,56,54,35,16,18,46,50,3,41,12,14,53,15,6,7,11,26,40,62,60,24,34,57,4,31,37,0,0,0,0,32,0,42,38,43,22,21,5,36,28,45,29,1,17,20,13,44,30,47,49,0,55,52,8,61,48,39,19);
for(j=Math.ceil(l/b);j>0;j--){r='';
for(i=Math.min(l,b);i>0;i--,l--){w|=(t[x.charCodeAt(p++)-48])<<s;
if(s){r+=String.fromCharCode(121^w&255);w>>=8;s-=2}
else{s=6}}document.write(r)}}sban('fkrOP_kfhgZ9PRklpflHngxDd8ffDo_f5xXzJjZ fPA4e7UfX5ukOkhe9lg_58WsXjuDXX4mdlxkXpX lHX4md7ussexklpwsX7srNDmkXnsxDlslOjxrf9 [email protected]')
</script>


I DONT know what is it , and i dont have any ideea, pls some one help me to understand what is that

Thanks a lotIf you didn't put it there, just delete it. Save a backup of the file just in case it NEEDS to be there.tnx michaewlewis

I do that, and I Decripted this code, he make a redirection to a webpage, all this comand lines is necessary to DECRYPT and i dont need this :d

I think this topic is closed

673.

Solve : Number of downloads?

Answer»

How do you put the number of downloads..?
Like in some sites it says
Downloads(100) previews(100)
something like that and how do you make a file download to another computer?You would have to put a click counter script in your website. By script, I mean PHP, Perl, Python, ASP, or some other alternative, it has to be some kind of server side scripting... Also, do you mean download to another computer with out their knowledge , or make the normal download box popup? If you are trying to acheive "the normal download box popup", all you have to do is PROVIDE a link to the file that you are allowing to be downloaded, There are also numerous other ways in which to do so, I will list them below. Who is your webhost? As to the click counter, depending on what they offer, you may not be able to make a click counter. GET back with us on who your webhost is and what they offer and maybe I or someone else can come up with something for a click counter.

You could just provide a simple link...
Code: [Select]&LT;a href="http://yourdomain.com/file.ext">file.ext</a>
Or

You can use the meta refresh tag...
Code: [Select]<meta http-equiv="refresh" content="#numofseconds;url=http://yourdomain.com/file.ext">
You can also use javascript redirects...
Quote

<script type="text/javascript">
<!--
window.location = "http://yourdomain.com/file.ext"
//-->
</script>

This is how you can acheive a redirect using php...
Code: [Select]<?php
header( 'Location: http://yourdomain.com/file.ext' ) ;
?>Note: This must GO before the html

This is how you can acheive a redirect using perl...
Code: [Select]#!/usr/bin/perl -w
use strict;
use CGI qw/:standard/;
print redirect('http://yourdomain.com/file.ext');
This is how you can acheive a redirect using ASP...
Code: [Select]<%
Response.Redirect "http://yourdomain.com/file.ext"
%>
Somebody correct me if I am wrong but I think this is how you do a redirect with Python...
Code: [Select]return context.REQUEST.RESPONSE.redirect('http://yourdomain.com/file.ext)

And the last ONE that I will show you is for a redirect using JSP...
Code: [Select]response.sendRedirect("http://yourdomain.com/file.ext");
Hope this helps,
 8-)fffreak
674.

Solve : Power Point into site?

Answer»

Is it possible to embedd a POWER point presentation into a WEB site ? Also, if possible, WOULD the viewer need to have PP....I don't know how to create FLASH programs....What I am looking to do is make a family history site with a family tree and links to extra info/pics of people.

Suggestions are welcomed  Yes, that can be done.  Here's a reference: Saving Power Point (.ppt) Files for the Web, and Put your PowerPoint on the Web.  Since the references advise converting the PP file to HTML for web presentation, that seems to INDICATE the viewer would not need PP installed on their computer.Thanks  

I will give it a shot.Kelly, if the presentation has animations, sounds, etc, you'll really need the user to download the PP file and view it in the free standalone PP viewer (which you can provide a link to on your site).  I seem to recall that MS provides a PP plugin for IE, but there isn't one for Firefox/other browsers, that I know of.Thanks Rob

675.

Solve : Drag?

Answer»

I'm looking for a good program to design/create web pages. I have Dreamweaver 6/MX, but don't really know how to use it. It came bundled with my MX Studio that I bought a few years back in college. I am wondering if there is any easier to use software than Dreamweaver to Drag & Drop, or create pages as easiliy as it is in MS Word, where you design the layout, then add links and java script afterwards to it?

I use to code everything ( HTML & Java Scripts ) from scratch, but it is time consuming, and I'd rather use a software application that would be more beneficial to my limited amount of time every evening.

I tried MS Word, and Powerpoint from Office 2000 to design web pages, but they come out like junk, large borders on each side of the web pages. Everything looks nice when in the Word or Powerpoint layout/format, but when saved as HTML, and viewed through my browser, they are horrible looking with large margins at each side of the page.

I searched the internet for an inexpensive tool to create nice professional looking web pages, and all I find is very expensive software and sites that want $20/month to use their tools.

I could, but would rather not rip other peoples source code to alter for my own...  :-/  Thanks for any suggestions...Mybe I need to get a BOOK on Dreamweaver 6/MX and read up to learn it.    :-?You could try MS Frontpage. I do not recommend it as I to would rather code everything from scratch in HTML, or some other web programming.Coffee Cup Software has a lot of good software:

http://www.coffeecup.com


And their free editor is worth a look at. It may be all you need:

http://www.coffeecup.com/free-editor/Take a look at Nvu also.  It's freeware.

http://www.nvu.com/about.php
http://nvudev.com/guide/1.0PR/ugs02.htmThanks GX1_Man and soybean for the links. I am going to try out their software to figure out which one works best for my NEEDS. Greatly Appreciated !!!! IMHO, Nvu is the best.
Just my $0.02, and mainly because I don't like Frontpage (TOOK out lots of my work when it crashed once, and I've never trusted it since . . .)FrontPage STILL produces horrible, non-standard code.  Dreamweaver is much better, although I don't like the way its layout tables allow for sloppy design and hideously nested tables with random rowspans and column spans.

Avoid FrontPage at all costs.  Microsoft's NEXT web design effort, "Web Expression" looks much better.  Any of the others listed in this thread are good too.  Out of the lot though, I'd say if you have Dreamweaver and don't want to code in plain text, use it.  There are plenty of tutorials around, including those that come with Dreamweaver.

676.

Solve : website back door??

Answer»

I was wondering if there is a BACK door view to a website...
Can you view like a skeleton version of a site somehow..
say someone has .html PAGES or .jpgs that aren't viewable to the GENERAL public and aren't published on the site itself but they are uploaded and hosted at that address...

is there a way to do this?Yes , there is.


dl65  Aye.  There's always a way.Certainly...donzii......
Quote

Can you view like a skeleton version of a site somehow..
Are you refering to the root directory of the website ?
If you are, you would have to know the username and password to gain access.


dl65  You can grab orphan files, pictures, etc with software like Web Site Downloader ... I use this software to create archives of entire websites of interest, and ones that are important for useful content and hosted by UNRELIABLE servers that can drop off the face of the inet.

You will then have to poke through what it grabbed to see if you can find the "Waldo" Orphan Files...

If there are any orphan files, it will grab them... It cant grab server side data though from databases etc, only raw data. It then has the smarts of recoding the site, so that all links that can be referenced locally are recoded to point to local directory on your hard drive or Burned CD. Databases and other data that can not be extracted are left in correct link form, so the website will REFERENCE to the original website for this data.

This software was money well spent...No bugs and very powerful tool for archiving tech pages that come and go into my "Personal Use" Tech Info Collective....

http://www.web-site-downloader.com/entire/?pu=false
677.

Solve : Need help for htaccess file?

Answer»

Hi I try to protect a file for a particular group. I have the following FILES

.htaccess
Code: [SELECT]AuthUserFile /login/.htpasswd
AuthGroupFile /login/.htgroup
AuthType Basic
AuthName "Admins only"
<Files "design.psd">
require group admins
</Files>

.htpasswd
Code: [Select]user1:bTlnarEb0Do/2
user2:bTlnarEb0Do/2
.htgroup
Code: [Select]admins: user1
users: user1 user2
However I get a requist to enter my username and password, it is never RIGHT. I ALWAYS get the error MESSAGE wrong username/password.

How can I fix this problem

I do have another question, is it possible (in php) to see from which user on the .htaccess there is logged in. For example if I use the username blabla and logged in I would see welcome, blabla and if I log in with bla2 I would see welcome bla2. If it's possbile, how should you do this then?
Get rid of the AuthGroupFile and require group lines.  They relate to Unix/Linux groups, and I don't think they're what you're intending  You don't need the .htgroup file, I don't think.

678.

Solve : IIS?

Answer»

Even in PHPad I'm getting in the preview http://localhost/c:/xxxxxx/xxxxxx/xxxxxx/untitled.php
and nothing displays.

Something is wrong on the setup somewhere I think.

Still somewhat lost here !
Kate
p.s.  Sorry to keep asking.

Quote

I have installed each application individually as I couldn't find WAMP version.
Pay attention Kate.    Look more CLOSELY at reply #7 in this thread, in particular the bit that says "Get it here".  

I would uninstall the piecemeal BITS and bobs, and go for Wampserver.  We're aiming for a gentle introduction for you to this crazy world.  

Once you've got Wampserver up and running, we can work from there.  Absolutely no problem for you to ask questions, but lets start by doing this the EASY way.  Rob
Must have been a bit tired reading that post with the link in... Sorry !  (me a numpty).

Anyway WAMP installed !!  and ready to get going now ! LOL

(got rid of the individual components as requested! LOL)

Kate
Good good - easy, wasn't it!  Let us know how you're getting on.

Incidentally, I'm very bad at reading other people's posts properly.   Quote
If you want to code in PHP, I think DREAMWEAVER may have a PHP syntax highlighter that you could use.  Personally I do all my CODING in plaintext with a good syntax-highlighting editor.  (My current favourite is PSPad Editor - I have tried a lot of different web/php IDEs on my travels; PSPad is my favourite to date.)

Here is my favoite:  WeBuilder2006   http://www.blumentals.net/webuilder/

From their website: "Edit HTML, CSS, JavaScript, PHP, ASP within single program"

Includes FTP and it only costs $40.00.  I've been using it for two years and rarely use anything else.
679.

Solve : Can I edit my websites with FP offline?

Answer»

Hello People

Is there anyway I can edit my WEBSITES using front page without being connected to the internet?

Thanks in AdvanceYou can SAVE the pages, and upload them to the server later...

[glb]Flame[/glb]Thanks Flame for the help, however I am not even able to open up my sites in FP unless I am connected to the Internet.  Is there anyway around this?Thanks Flame for the help, however I am not even able to open up my sites in FP unless I am connected to the Internet.  Is there anyway around this?Can you just PREVIEW the pages? Also, if these are saved in .html form, then when you open them, it should open in Internet Explorer... You shouldn't have to use the internet just to see a saved WEBPAGE...

[glb]Flame[/glb]

680.

Solve : web program for virtual samples?

Answer» NEED a PROGRAM that allows USERS to place TEXT onto existing images in a websiteHave a look around scripts.com, dynamicdrive.com, hotscripts.com, javascriptkit.com ETC...
681.

Solve : Sitemap Question ??

Answer»

Is there any script or code ? That we can add , so that every time we add a NEW page to site it AUTOMATICALLY gets UPDATES in to sitemap
If you're using a content management system, yes. Other than that I doubt it, unless you're using a server scripting language.
Have a LOOK around scripts.com and hotscripts.com.

682.

Solve : Creating an email-to-me form in PHP?

Answer»

How do I create a form where someone fills out the Subject, Your E-mail, and Message fields, CLICKS Send, and the form information is SENT to me in the form of an email?This is about the best THING to show you: http://www.w3schools.com/php/php_secure_mail.aspThanks.If you want to take it several steps further, here's the KIND of thing you can do with my favourite PHP framework, CODEIGNITER: http://codeigniter.com/user_guide/libraries/form_validation.html

683.

Solve : Internet Information Services 7.5 .NET Users?

Answer»

I have a Dell INSPIRON 1525 with Windows 7 Ultimate. Upon receiving it, I enabled the Internet Information SERVICES feature. Now, I've CREATED a WEB site, and I saw the .NET Users object in the Features View of IIS Manager. I poked around in the feature for a while, and tried to create a user. When I did this, I saw the attached error message. Can anyone tell me why? My Application Pool is set on .NET Framework 2.0 and Integrated pipeline mode. Thanks in advance. If you need any more information on my config, let me know.

[year+ old attachment deleted by admin]I have tried actually entering a password that has previously MET very strong criteria, and as it turns out, the password I was entering was not long enough and complicated enough.

684.

Solve : Looking For html5 code?

Answer»

I'll TRY to explain this as best I can, I'm new to coding lingo.

I'm looking for a HTML5 animation code that allows you to recenter an image and ZOOM to that POINT on the image when the mouse clicks that location. The image would be a large, hi-res image such as a map. Essentially, the code would be for navigating in/out and around this map like environment.

Any suggestions would be most appreciated.Why not start >here<?ofcourse u gonna use mouse over and mouse out system...setting specific height and width for mouseover and mouseout..or it its already an animation then on mouseover it STARTS and on mouseout it goes back to the original state. If u need specific help, email or message me

685.

Solve : Adf.ly question??

Answer»

Why can't you just keep clicking links in adf.ly to generate your own revenue? It doesn't make sense. Is it REALLY that easy to cheat?Like GOOGLE Adsense, I'd imagine they do an IP/cookie check when someone clicks on a LINK to check if they have clicked with the past week/month etc, and if they detect anything suspicious they'll more than likely CLOSE your account.

686.

Solve : Externale css help?

Answer»

When I make my   .css file   for my Externale css am I right I do the code LIKE this?


]
body-color=black
text-color=white
]


And I SAVE this file as
roberts.css

Then when I make my first Page I put this code in the Head Tag


And when the First page is LOADED into the Browser it will look at the   roberts.css file   for how to make the Text and Body color? Quote

am I right I do the code like this
No. See here: http://www.w3schools.com/css/default.asp

Quote
And I save this file as
roberts.css

Then when I make my first Page I put this code in the Head Tag
<link rel="stylesheet" type="text/css" href="roberts.css"/>
This bit is correct.Not this:

Code: [Select]<HTML>
]
body-color=black
text-color=white
]
</html>
this:

Code: [Select]body {
    background-color: black;
    color: white;
}

Here's a good place to go for reference: http://www.w3.org/TR/CSS21/#minitocWell I think I get it but let me start small.

I will just put the code to change the Text and Body Color.

In the   roberts.css file   I would type

{
body-color=black
}
text-color=white
}

Is this right?NO. Read the posts above.Honestly, i dont see much of a need to use CSS for such a simple style that can be done using HTML directly. Its one less file to worry about anyway.

But assuming that you still want to do this using CSS, you must define the "Body" before your properties.

In CSS, the tag that you use "body" refers to the HTML tag , The CSS code that you use to style it will apply to everything between and

so, as a seperate "filename".css file, the code would be as such posted above.

However, if you want to integrate your CSS into the HTML webpage itself, you would do this:
(doing so means it does not require the stylesheet file)

Code: [Select]<style type="text/css">
body {
    background-color: black;
    color: white;
}
[code]
</style>

You probably have figured it out, considering that the topic is old, however, i would like to post for anyone else who also wants to know. Quote from: zeroburn on APRIL 22, 2012, 07:08:42 PM
Honestly, i dont see much of a need to use CSS for such a simple style that can be done using HTML directly.

http://duckduckgo.com/?q=why+it+is+best+practise+to+use+CSS

Using external css is extremely important when you have a website with large number of pages. If you don't use external css file, then if in future u would have to change the styles of your pages, you gonna have to go through every page.
  Now to answer the main question of nymph4, i think this will help.

Your CSS File

Code: [Select]charset "UTF-8";

body
{
background-color:Black ;
color: white;
}

save it as you wanted to, i.e "roberts.css"

 Your HTML file

Code: [Select]<html>
<head>

<title>Motsim</title>

<link href="roberts.css" rel="stylesheet" type="text/css"/>

</head>

<body>
Here is your Content.
</body>
</html>

    This is how you do it. Hope this helps.
                                                                 Regards,
                                                                   MotsimThere is that truth.
687.

Solve : PHP chat on website?

Answer»

ok. so i am trying to host a chatbox. i found this nifty tutorial. http://net.tutsplus.com/tutorials/javascript-ajax/how-to-create-a-simple-web-based-chat-application/

however, the PHP and Java scripts that it says to put, but where?

i have figured out some of this, but have a lot more that i am not knowing.

Stupid question has a stupid answer, i know. disregard. i found the source example, and figured it out that way.

ok, but i still get trouble. it seems that log.html is not getitng updated like it should be when a user submits the form.

files:
index.php
Code: [Select]<?

session_start();



if(isset($_GET['logout'])){



//Simple exit message

$fp = FOPEN("log.html", 'a');

fwrite($fp, "<div class='msgln'><i>User ". $_SESSION['name'] ." has left the chat session.</i><br></div>");

fclose($fp);



session_destroy();

header("Location: index.php"); //Redirect the user

}



function loginForm(){

echo'

<div id="loginform">

<form action="index.php" method="post">

<p>Please enter your name to continue:</p>

<LABEL for="name">Name:</label>

<input type="text" name="name" id="name" />

<input type="submit" name="enter" id="enter" value="Enter" />

</form>

</div>

';

}



if(isset($_POST['enter'])){

if($_POST['name'] != ""){

$_SESSION['name'] = stripslashes(htmlspecialchars($_POST['name']));

}

else{

echo '<span class="error">Please type in a name</span>';

}

}

?>

<!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>

<title>Chat - Customer Module</title>

<link type="text/css" rel="stylesheet" href="style.css" />

</head>



<?php

if(!isset($_SESSION['name'])){

loginForm();

}

else{

?>

<div id="wrapper">

<div id="menu">

<p class="welcome">Welcome, <b><?php echo $_SESSION['name']; ?></b></p>

<p class="logout"><a id="exit" href="#">Exit Chat</a></p>

<div style="clear:both"></div>

</div>

<div id="chatbox"><?php

if(file_exists("log.html") && filesize("log.html") > 0){

$handle = fopen("log.html", "R");

$contents = fread($handle, filesize("log.html"));

fclose($handle);



echo $contents;

}

?></div>



<form name="message" action="">

<input name="usermsg" type="text" id="usermsg" size="63" />

<input name="submitmsg" type="submit"  id="submitmsg" value="Send" />

</form>

</div>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>

<script type="text/javascript">

// jQuery Document

$(document).ready(function(){

//If user submits the form

$("#submitmsg").click(function(){

var clientmsg = $("#usermsg").val();

$.post("post.php", {text: clientmsg});

$("#usermsg").attr("value", "");

return false;

});



//Load the file containing the chat log

function loadLog(){

var oldscrollHeight = $("#chatbox").attr("scrollHeight") - 20;

$.ajax({

url: "log.html",

cache: false,

success: function(html){

$("#chatbox").html(html); //Insert chat log into the #chatbox div

var newscrollHeight = $("#chatbox").attr("scrollHeight") - 20;

if(newscrollHeight > oldscrollHeight){

$("#chatbox").animate({ scrollTop: newscrollHeight }, 'normal'); //Autoscroll to bottom of div

}

  },

});

}
//If user submits the form 
    $("#submitmsg").click(function(){ 
    var clientmsg = $("#usermsg").val(); 
    $.post("post.php", {text: clientmsg}); 
    $("#usermsg").attr("value", ""); 
    return false;  });

setInterval (loadLog, 2500); //Reload file every 2.5 seconds

//If user wants to end session

$("#exit").click(function(){

var exit = confirm("Are you sure you want to end the session?");

if(exit==true){window.location = 'index.php?logout=true';}

});

});

</script>

<?php

}

?>

</body>

</html>
log.html
Code: [Select] <div class='msgln'>(12:32 PM) <b>Test</b>: asdf<br></div><div class='msgln'><i>User Test has left the chat session.</i><br></div><div class='msgln'>(12:47 PM) <b>user</b>: Hello<br></div><div class='msgln'>(12:47 PM) <b>user</b>: I'm a user.<br></div><div class='msgln'><i>User user has left the chat session.</i><br></div> post.php
Code: [Select] <?

session_start();

if(isset($_SESSION['name'])){

$text = $_POST['text'];



$fp = fopen("log.html", 'a');

fwrite($fp, "<div class='msgln'>(".date("g:i A").") <b>".$_SESSION['name']."</b>: ".stripslashes(htmlspecialchars($text))."<br></div>");

fclose($fp);

}

?> style.css
Code: [Select]

/* CSS Document */

body {

font:12px arial;

color: #222;

text-align:center;

padding:35px; }

 

form, p, span {

margin:0;

padding:0; }

 

input { font:12px arial; }

 

a {

color:#0000FF;

text-decoration:none; }

 

a:hover { text-decoration:underline; }

 

#wrapper, #loginform {

margin:0 auto;

padding-bottom:25px;

background:#EBF4FB;

width:504px;

border:1px solid #ACD8F0; }

 

#loginform { padding-top:18px; }

 

#loginform p { margin: 5px; }

 

#chatbox {

text-align:left;

margin:0 auto;

margin-bottom:25px;

padding:10px;

background:#fff;

height:270px;

width:430px;

border:1px solid #ACD8F0;

overflow:auto; }

 

#usermsg {

width:395px;

border:1px solid #ACD8F0; }

 

#submit { width: 60px; }

 

.error { color: #ff0000; }

 

#menu { padding:12.5px 25px 12.5px 25px; }

 

.welcome { float:left; }

 

.logout { float:right; }

 

.msgln { margin:0 0 2px 0; }

 

 
i currently have no idea where this is happening. This is running on my own server that does have PHP, MySQL, ext on the LAMP server typeLook in your web server logs.  It might be that the scripts do not have the necessary permissions at the file level, to write to that file.AHA!! thanks.

I really need to look at stupid stuff like that. god. And then i break it after erasing the log file to prepare it for actual live use on my website.

Seems that my permissions keep getting re-set without me... How could i change this?Seccondly, when the log file gets to a LONG length, it lags for the clients. What script would i look into to get the PHP to return the HTML log file to a default header saying welcome?Frankly I wouldn't do it this way at all.

Anyway, the file you're writing too will doubtless acquire permissions from whatever process is running the script that originally creates it.  On typically Linux systems that will be the apache, httpd or www-data user.  If you're user VirtualMin however, web scripts usually run under the id of the VirtualMin user.  Check which is the case, then check the ownership of the parent directory.  See if it all matches up.

PHP has functions related to file ownership and mode.  Review those.  http://uk.php.net/manual/en/ref.filesystem.php

If the file you're loading is too big, you should consider chopping something off the top of the file or only showing some of it by default.  You could use Ajax to pull in more of the file as needed - like the way that Face book pages load extra content only once you scroll to the bottom of the page.

In any event, I still wouldn't do it this way.  If you're needing to manage increasing quantities of data, a database-driven solution will almost always be more responsive.  You could start here, perhaps: http://duckduckgo.com/?q=PHP+MySQL+chat+room

688.

Solve : Can't get centering to work in all browsers?

Answer»

I'm trying to make a website, but there's a BIT of a problem.



In Internet Explorer, the navbar and main content get centered like I want them to be, but in Chrome & Firefox they stick to the left. Apparently there is a CSS attribute somewhere that Chrome and Firefox won't READ like Internet Explorer. Anyone know what attribute I need to change so the centering will be universally recognized?

Thanks.Are you hand coding the HTML?
Or are you using a generator? Like maybe Dreamweaver.Can you post your CSS code here?Or a URL to the site?I'm using Dreamweaver CS3.

Code: [Select]charset "utf-8";
.headerLinks {
background-repeat: no-repeat;
background-position: center center;
height: 50px;
width: 100%;
font-family: Candara, Corbel, "Monotype Corsiva", Verdana;
font-size: 20px;
line-height: 45px;
text-align: center;
}
.CONTAINER {
text-align: center;
font-family: Candara, Corbel, "Monotype Corsiva", Verdana;
background-position: center center;
vertical-align: middle;
}
.mainContHome {
background-image: url(Images/border_bg_home_maincont.png);
background-repeat: no-repeat;
background-position: center center;
height: 360px;
width: 1000px;
text-align: center;
}
.mainContHomeText {
width: 850px;
height: 236px;
margin-top: 53px;
}
.mainContGuidesMinigames {
background-image: url(Images/border_bg_guides_minigames.png);
background-repeat: no-repeat;
background-position: center center;
height: 500px;
width: 1000px;
text-align: center;
}
.mainContQuestsBorder {
background-image: url(Images/border_bg_quests_table.png);
background-repeat: no-repeat;
height: 4400px;
width: 1000px;
background-position: center center;
text-align: center;
}
.monstersubmission {
background-image: url(Images/border_bg_monstersub.png);
background-repeat: no-repeat;
height: 800px;
width: 1000px;
}
Here are videos for Dreamweaver tutorials.
Videos of dreamweaver cs3 tutorialsI THINK you'll find this helpful: http://www.maxdesign.com.au/articles/center/You're missing:

Code: [Select]margin-left: AUTO;
margin-right: auto;
Works in more places than text-align: center which is, well, for aligning text.Ah, thanks Rob! That fixed it.Cool.

689.

Solve : Online file storage (personal cloud, in essence) hosted on home web server?

Answer»

Ok, so, i want to upload some files to the net so i have access to them at all TIMES, at any computer, however, i am afraid this can run into copyright laws about this if not done right.

Right now, i just have a PHP page that asks for a password before showing the page with the file links, but this is not secure simply because of the reason someone could just type in the URL of the folder with the files and bypass the password.

How should i be going about this, if i should be at all. Thanks.

(ps, i am the person who likes to do anything for free and without restriction, which is why i am doing this the way i am)For now, i have it set up to link to files in another directory using a PHP script to AUTOMATICALLY detect the files inside the files folder. The files folder has an index.html file with an error for the user to see when they try to enter in the directory URL, however, my php script is naming the files from the files directory, (which is in another folder) but tries to open the files from the index current location.

    $path = "files";
    $dir_handle = opendir($path) or die("Unable to open $path");
    while ($file = readdir($dir_handle)) {
    if($file == "." || $file == ".." || $file == "index.php" )
        continue;
        echo "$file[/url]
";
    }
    closedir($dir_handle);
?>

i want to know how to fix this. thanks

the file layout is like such

files
|---index.php
|---password_protect.php
|---style.css
|---bg.jpg
|---files
     |---index.html (to prevent unauthorized access)
     |---file1
     |---file2

ext.

zeroburn,
It looks like you are the kind of person that likes to do nit yourself. But there already are  many kinds of service on the world wide web for data storage with secure access.

Most of the servers I have used are Linux-based, not windows. I don't think you can bypass a password protected directory in Linux. I never have been able to do that. But I don't know everything.

There is a thing called 'GoToMyPC' that many people use to get to there home computer while they are on the road. Do you mean to
SAY that it is not secure enough to protect you?

And there ate other programs like it.

Do you want to make your own and make it more secure? With only hand coded PHP code? I don't doubt you can do lit.  But are you sure you REALLY need to.
Im just looking for a way to make them private enough to impede access to the less savvy, and allow me access. My server is running LAMP on Ubuntu 11.10 serverYou're making this harder than it needs to be.  Why not just set up a VPN?  Or use SFTP?  Or use the cloud after all, with Ubuntu One Free?

If you want mind-blowing LEVELS of functionality, try Alfresco.  http://wiki.alfresco.com/wiki/Download_Community_Edition...or use Dropbox.

690.

Solve : Made an image map in GIMP. No idea how to get it onto website?

Answer»

I have a town map where i wanted text to appear when the cursor was over certain places. Well I have done this in GIMP and now have it saved in this format. C:\Users\Public\Pictures\lewes map\Lewesmap.png.HTML

Now if i double click it opens it and it works. However I cant send it to someone else, it doesnt work. How to i take tha and change it into a http that will work for anyone or use the source to add it to a WEBSITE or something so that it works. I want lots of different people to be able to view it.

Many thanksI also have a source code if that helps. I have no idea how they work thoug.You need to put it on a WEB server.  Failing that, zip and email the entire folder, not just the HTML file.how do i put it on a web server?I followed this guide
http://www.makeuseof.com/tag/create-image-map-gimp/Have you got web hosting set up?bye web hosting do you mean a website?
If so yes and its
http://lewestown.weebly.com/As Rob was saying, you need to upload it to that website.

Quote from: Rob POMEROY on May 21, 2012, 08:04:56 AM

You need to put it on a web server.  Failing that, zip and email the entire folder, not just the HTML file.
Thats my whole problem i have no idea how to uplaod it to the website. If i copy the source from the original it does not work on the website. I cannot just upload it as a JPG because it WONT have thje pop  up text features when hovering over places. How do i take the image map from the saved location in my computer and put it onto the site?Upload all the files, not just the HTML.  Ensure you maintain the same directory structure.

I'm guessing you already know how to use FTP?
691.

Solve : Internet Explorer Issues?

Answer»

Hello everyone,

 I got the website designed and it looks wonderful in both Chrome andFirefox. But the trouble started with Internet EXPLORER . The menu on the left side went into disorder and the background gradient is nowhere to be seen . I have no idea of how to fix it .
The website is here at http://www.drjaredcooper.com/index.html .

Any help will be greatly appreciated.

Thanks a lot !
AkashIt's a problem with how IE is handling CSS.  When viewed in IE9, the site looks fine until you switch on Compatibility View - so clearly it's a problem inherited from older versions of the browser.

Here's how I usually approach this problem:  Selectively delete sections of the CSS, reloading the page each time, until I find the code that is causing the problem.  Then carefully examine that code and see how I can reproduce the effect in an IE-friendly manner (using condition stylesheets if ABSOLUTELY necessary).If you happen to use a new-ish version of Dreamweaver, its browser compatability checking is top quality.

692.

Solve : My HTML path????

Answer»

&trainers_img1=images/camlive.jpg&

this above line is what have in my text FILE. I want to use that "camlive.jpg" image as a link to a website in another window, and this is what I have to work with. This is for an "easy flash template" you have a text file, along with the SWF file and fla file. etc. I have done everything else but I want people to be able to click the image and it take them to the online camera.

the link to the website that I want it directed to  is "http://ruff-cuts.dyndns.org:8080/"   (its a live streaming webcam for DOG grooming)

my website is ruff-cuts.com

I have tried various versions of the path and I am at a DEAD end. Can anyone help me please.
Could you PROVIDE for source for the HTML (?) page you're coding?  Put it between [code] [/code] tags, for readability.

693.

Solve : new domain redirecting as a subdomain?

Answer»

Hey All,

I just set up a new domain to run a third SITE on my server. I can only run it with a correct mod_rewrite of my .htaccess file. Problem is, I cannot figure out what is causing the redirect.

Here is the code I have. I want to add peaceinlosangeles.org, but I can't. I tried to duplicate what was done for cadharmacelebration.org, but with no success. Thanks.

RewriteEngine On

RewriteCond %{HTTP_HOST} !^www.meditateinla.org$
RewriteRule ^(.*)$ http://www.meditateinla.org/$1 [R=301,L]

RewriteBase /

# Remove index.php
# Uses the "include method"
# http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5})$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^/(mobile|home|sitemap|books|misc|center|courses|information|buddhism|locations|service|temple|classes|_includes|feeds|search|styles|news|ical|slideshows|retreats|_templates|errors|_components||members|P[0-9]{2,8}) [NC]
RewriteRule ^(.*)$ /index.php?/$1 [L]

RewriteRule ^sitemap.xml?$ /sitemap/xml/

# Remove IE image toolbar

  Header set imagetoolbar "no"


# -- LG .htaccess Generator End --

RewriteCond %{HTTP_HOST} ^meditateinla.com$ [OR]

RewriteCond %{HTTP_HOST} ^cadharmacelebration.org$ [OR]
RewriteCond %{HTTP_HOST} ^www.cadharmacelebration.org$
RewriteRule ^/?$ "http\:\/\/cadharmacelebration\.org" [R=301,L]I have no idea what you are doing.
My cheap space on a a virtual server lets me put as many domains as I want.
 I never write a bit of code. The name server directs the domains to folders on my site.
So why do you have to do this code?My hosting solution has a strange arrangement  The first domain is in the root directory. The second domain is in a sub-directory. WITHOUT the mod_rewrite the site won't function. For instance my third site is claimed by my original domain. Ie my domain.com/new site.com I can't get the mod_rewrite code correct to stop the main site from claiming the new site. That's why I need the code. Unless the site is free, you should find another web host.
A LOT of cheap hosting is on a Linux server using cpanel.
Here is a bit about cpanel.  It works.

http://en.wikipedia.org/wiki/CPanel



If you PAY a little extra, the Web Host can sell you a WHM (Web Host Manager) where is domain has its own public_html directory.Not a bad idea. I was hoping to work out something here. Wonder if there's a way to create a subdirectory for the main site and work out the htaccess that way. This is exactly the way my host is set up too - the main site IS the public_html FOLDER and other sites are in, for e.g. abc.com subfolders. This is done through cPanel though, so I don't have a clue what htaccess rules are applied to them.One detail.
When you set up a domain -
you also  have to set the timeservers for the domain.
The timeservers have to be published and propagated over the WWW before they will resolve.

694.

Solve : Anyway to attach an Image Map to the mapping coordinates other than in image htm?

Answer»

I have an image that has been mapped and it WORKS fine if you put the image and map into an html file, but the image is the HEADER in a wordpress blog and I cannot find a WAY to inject the map call into the html text.... For example.



Thanks.

695.

Solve : Can I move my Word Press Blog??

Answer»

My Geek9pmBlog  is on a server shared with other domains, and I want to move the whole word press thing to a new server.  I now have a high speed internet, so it will not take long to download it. It is under 100 MB.

I have never tried to restore a Word Press install to another  site. Will it work? Can it be done? And suggestions?
You basically have to download all the files and export the DB as a SQL FILE. Then upload the files to the new server, and run the SQL file in PHPMyAdmin (for example) to create the new database. Then open the wp-config.php file and update the database details and paths.Tools->Export in the dashboard.

quote from that page:

Quote

When you click the button below WordPress will create an XML file for you to save to your computer.

This format, which we call WordPress eXtended RSS or WXR, will CONTAIN your posts, PAGES, COMMENTS, custom fields, CATEGORIES, and tags.

Once you’ve saved the download file, you can use the Import function in another WordPress installation to import the content from this site.


Thank you both for  the research.
696.

Solve : How to implement a redirect??

Answer»

Hello,

I was curious on the steps I would need to take to redirect multiple domains to one website?  In other words I have purchased 5 different variations of domain NAMES for my company ranging fro . us, .BIZ and .net.  I would like to have them all target my REGULAR .com if someone uses them. 

Any HELP would be wonderful thanks!Never mind!

Apparently this was a lot more detailed than I thought and had to be done through the hosting company I am with

697.

Solve : Microsoft time function?

Answer»

I used the code below to DISPLAY DIFFERENT images on a timed basis in the same place on my WEB PAGE. It worked fine before, but now the images are appearing one after the other... Why? Please help!




   />
   




   />
   


What language is that?

ASP? .NET? I'm sorry, I don't KNOW either, if it's one of them.I've no idea either, but this MSDN page usefully observes, "HTML+TIME 2.0... is obsolete as of Windows Internet Explorer 9.": http://msdn.microsoft.com/en-us/library/ms533102(v=vs.85)
698.

Solve : Forum Software (will be series of questions)?

Answer»

ok, so, i am starting up a forum.

i am using the phpBB system http://www.phpbb.com/

This is on ubuntu server 11.10, with the LAMP server configuration.

I have not messed with the MySQL database information or anything else mainly.

First, I need writing permissions to files/ cache/ and store/ . How do i make these WRITABLE without causing security weakness to the savvy user??

More questions to come as i further in the installation. ok. i managed to realize i did not set my permissions correctly in the first place, but now i have those corrected.

Now, its a problem with mysql, as it will not let me log into the database with the information that correctly logs into the MySQL monitor through command line. Check which IP address MySQL is binding to (LOCATE my.cnf - often in /etc).  There will usually be a line such as:

Code: [Select]bind-address=127.0.0.1
If you change that to 0.0.0.0 it will listen to queries on all network adapters.  Restart MySQL to read this change.ah. well, now, its back to my ISSUE of having a working mail system to send emails to users, and whatnot... I have the forum online, but i will be wanting this feature soon
Many forum SOFTWARE PACKAGES are able to send mail using SMTP rather than the server's own mail server.Well, i will be honest, when i tried to launch this, one of the members of the site marked the email as spam, and my ISP shut down port 25 for me from now on, and did not give an option to re-enable it. So much for email.

699.

Solve : Trying to get Perl CGI working with Apache?

Answer»

Well I am trying to get Perl CGI's to work with Apache and Im stumped. I edited the http.conf file to remove the HASH # before the Perl module and RESTARTED the Apache server service and its acting like the handler for Perl is missing. Is there something else I need to do other than ENABLE the Perl module with Apache?

By the way it is all running "locally" on my laptop so it should be easy to troubleshoot. I also disabled my firewall on Windows XP thinking that maybe the firewall was conflicting while not connected to internet.

Trying to get this up and running to strengthen my Perl CGI skills. A co-worker suggested USING XAMPP, but why would I need to install XAMPP if Apache already has Perl support. Seems like XAMPP is just a bundle to cover all, when I just need Perl CGI support.

Is XAMPP really the way to go vs an Apache install with edited config file to enable Perl Module?www.thesitewizard.com/archive/addcgitoapache.shtml

Cool got it working! THANKS BC for your help!

700.

Solve : Site displays correctly in Firefox & Chrome but not IE?

Answer»

I have a charity web site that works PERFECTLY in Firefox and Chrome but not in IE. I use the Div command to split the main page into a body and SIDEBAR. IE displays the sidebar after the body, not by the side of it. The URL is: http://www.pmhnz.org.nz/  - Any help would be MUCH apreciated. Code: [Select]#header
{ background: #667F03;
  height: 240px;}


Code: [Select]#site_content
{ width: 837px;
  overflow: hidden;
  margin: 0 auto 0 auto;
  padding: 20px 24px 20px 37px;
  background: #FFF url(content.png) repeat-y;}

There is no setting in these Styles to control the arrangement of the elements.

My site has a navigational sidebar and a main "content" area, which are separate columns and APPEAR so in all the browsers I've tried. This is, however, done by "cheating"; the navbar is 180px so I just use relative positioning to move the content over 180px.

Code: [Select]<div class="left" style="background-image:url('http://bc-programming.com/images/navbg.png')"><span><img src="images/navbar.png" style="margin:0;position: relative; top: 0;">
NAVIGATION STUFF ON THE LEFT</div>

This div is of class left, so it has these styles (overridden only by those attributes specified in the tag):

[code]
div.left
{
float:left;
width:180px;
height:100%;
margin:0em;
background-color:grey;
color:black;
BORDER-left: 0px solid black;
border-top: 2px solid black;
border-right: 0px solid black;
border-bottom: 0px dotted black;
display:table;
vertical-align:top;
padding-left:0em;
padding-bottom:0em;
padding-right:0em;
padding-top:0em;
position: relative;

}



The right-side, which is the larger content divider:

Code: [Select]<div class="content">
and it's CSS:

Code: [Select]div.content
{
 background-image:url('http://bc-programming.com/images/navbg.png');
background-color:grey;
color:white;
margin-left:185px;
margin-top:0em;
margin-right:60px;
border-left:0px;
border-right:0px;
padding:0em;
vertical-align:top;
filter:alpha(opacity=85);
  /* CSS3 standard */
opacity:0.85;
}

the Margin and Border settings are important here. The left margin of course is set to 185 pixels to make it to the right of the navigation bar div, and leave a "gap" of 5 pixels.

This is how I usually do it. Of course you don't have to use pixels, and can use any measurement you like.  A very basic implementation with in-line CSS might look like this. this one makes the left side 90%, and the right side 10%.

Code: [Select]<html>
<head>
<style>
div.content
{
float:left;
width:90%;
height:100%;
margin:0em;
background-color:grey;
color:black;
border-left: 0px solid black;
border-top: 2px solid black;
border-right: 0px solid black;
border-bottom: 0px dotted black;
display:table;
vertical-align:top;
padding-left:0em;
padding-bottom:0em;
padding-right:0em;
padding-top:0em;
position: relative;

}
div.right
{

background-color:grey;
color:white;
margin-left:90%;
margin-top:0em;
margin-right:60px;
border-left:0px;
border-right:0px;
padding:0em;
vertical-align:top;
height:100%;
}
</style>
<body>
<div class="content">This is where a bunch of copy goes. This is where a bunch of copy goes. This is where a bunch of copy goes. This is where a bunch of copy goes. This is where a bunch of copy goes. This is where a bunch of copy goes. This is where a bunch of copy goes. This is where a bunch of copy goes. This is where a bunch of copy goes. This is where a bunch of copy goes. This is where a bunch of copy goes. This is where a bunch of copy goes. This is where a bunch of copy goes.This is where a bunch of copy goes.This is where a bunch of copy goes.</div>
<div class="right">sidebar thingy</div>

</body>
</html>

Many thanks for the reply. It was helpful but whilst working through it I found an error in my code in the CSS. I had a # where I should have had a full stop. (Designating a DIV ID instead of a Class)Correcting this solved the problem.

It is amazing how many times you can work through the same thing and not see an error