Webmaster Forum


Go Back   Webmaster Forum > Marketing Forums > SEO Forum

SEO Forum Search engine optimization discussions.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 06-17-2004, 06:09 PM
Junior Member
 
Join Date: 06-17-04
Posts: 19
iTrader: 0 / 0%
anyone needs any scripting done?

Hi.
I've learnt Javascript only a few days back..and want to practice a bit,so,does anyone need any javascripting done?I'll do it for free,but it would be nice if u could gimme a link on your site once i launch mine(that would be 1 or 2 months).Also..i would be preferring beginner or intermediate level assignments.
 
Reply With Quote
  #2 (permalink)  
Old 06-18-2004, 01:25 PM
Junior Member
 
Join Date: 06-18-04
Location: Dallas
Posts: 17
iTrader: 0 / 0%
Take a look

How's it going ret_ali ? Well I"ll help you out if you help me out. Take a look at my site. Let me know what you can do to it using your new skills, and I'll have no problem linking you on my site. Let me know if you're interested. I'm a newbie at site making, so I can use the free help :wink:

www.powmiasite.com
 
Reply With Quote
  #3 (permalink)  
Old 06-18-2004, 02:19 PM
ATLien's Avatar
Contributing Member
 
Join Date: 10-13-03
Location: Atlanta, GA
Posts: 1,135
iTrader: 0 / 0%
I could use some java. i am creating a php script that has some advanced java functionality. I have been struggling through the java part, but I would love to have your help. I would offer you links in return.
 
Reply With Quote
  #4 (permalink)  
Old 06-18-2004, 02:59 PM
Junior Member
 
Join Date: 06-17-04
Posts: 19
iTrader: 0 / 0%
To ATlien:
I'd really like to help you..but i dont know java yet..what i know is javascript..which is different than java.Sorry about that,but if you ever need any javascript help just lemme know,i'd also learn PHP soon if i get enough time.By the way,are you a girl?(sorry couldnt resist your avator :wink: is that you?
To djromeo:
Well..for the question that what can i do with your website,its hard to answer since there are so many things to do!I'd be able to help better if you tell me exactly what do you want to be done to your website?may be redesigning it?since..its design doesnt seem to good.I can code the design for you..but actually,i SUCK at graphics so i guess you'll have to do the graphics stuff yourself.I'm also going to PM you about it.
 
Reply With Quote
  #5 (permalink)  
Old 06-18-2004, 03:14 PM
ATLien's Avatar
Contributing Member
 
Join Date: 10-13-03
Location: Atlanta, GA
Posts: 1,135
iTrader: 0 / 0%
I ment Javascript, I think. What is the difference? No that is not me in the avatar, I am a guy. I get asked that alot though.
 
Reply With Quote
  #6 (permalink)  
Old 06-18-2004, 03:33 PM
Junior Member
 
Join Date: 06-17-04
Posts: 19
iTrader: 0 / 0%
lol..
i dont know how to tell you the difference like that..lol.Why dont you tell me whats that you need to be done?and i'll be able to figure out what you meant.
 
Reply With Quote
  #7 (permalink)  
Old 06-18-2004, 03:53 PM
ATLien's Avatar
Contributing Member
 
Join Date: 10-13-03
Location: Atlanta, GA
Posts: 1,135
iTrader: 0 / 0%
just some bold, url, center buttons, where they click the buttons, then the html is added to the text area. I already have alot of it done.

[code:1:07ac64ac01]
<script language="JavaScript">
<!--
function formatStr (v) {
if (!document.selection) return;
var str = document.selection.createRange().text;
if (!str) {alert ("Please select the text you wish to format.");
return;}
document.selection.createRange().text = '<' + v + '>' + str + '</' + v + '>';
}

function insertLink () {
if (!document.selection) return;
var str = document.selection.createRange().text;
if (!str) {alert ("Please select the text you wish to link.");
return;}
var my_link = prompt('Enter URL:', 'http://');
if (my_link != null)
document.selection.createRange().text = '<a href="' + my_link + '" target="_blank">' + str + '</a>';
}

function centertext () {
if (!document.selection) return;
var str = document.selection.createRange().text;
if (!str) {alert ("Please select the text you wish to center.");
return;}
document.selection.createRange().text = '<div align="center">' + str + '</div>';
}

function insertImg () {
if (!document.selection) return;
var str = prompt('Enter Image Address', 'http://');
if (!str) return;
document.text.createRange() = '<img src="' + str + '" border=0>';
}
//-->
</script>
[/code:1:07ac64ac01]

That is what i have so far.
 
Reply With Quote
  #8 (permalink)  
Old 06-18-2004, 05:16 PM
Junior Member
 
Join Date: 06-17-04
Posts: 19
iTrader: 0 / 0%
this is javascript..anyway,could you give me the code for the actual HTML file?also..a bit more explanation of what the problem you're having here would help.
 
Reply With Quote
  #9 (permalink)  
Old 06-18-2004, 08:16 PM
ATLien's Avatar
Contributing Member
 
Join Date: 10-13-03
Location: Atlanta, GA
Posts: 1,135
iTrader: 0 / 0%
[code:1:10e2edbaed] <script language="javascript">
if (document.selection) {
document.write('<table border="0" cellspacing="0" cellpadding="0" width="100%">');
document.write('<tr>');
document.write('<td width="24"><a href="javascript:centertext()"><img src="/images/center-button.gif" alt="align center" width="24" height="18" border="0"></a></td>');
document.write('<td width="24"><a href="javascript:formatStr(\'b\')"><img src="/images/bold-button.gif" alt="bold" width="24" height="18" border="0"></a></td>');
document.write('<td width="24"><a href="javascript:formatStr(\'i\')"><img src="/images/italic-button.gif" alt="italic" width="24" height="18" border="0"></a></td>');
document.write('<td width="24"><a href="javascript:formatStr(\'u\')"><img src="/images/underline-button.gif" alt="underline" width="24" height="18" border="0"></a></td>');
document.write('<td width="26"><a href="javascript:insertLink()"><img src="/images/url-button.gif" alt="underline" width="26" height="18" border="0"></a></td>');
document.write('<td width="26"><a href="javascript:insertImg()"><img src="/images/url-button.gif" alt="underline" width="26" height="18" border="0"></a></td>');
document.write('<td><div align="right"><a href="http://" target="_blank">Guide To Creating Tutorial</a></td>');
document.write('</tr>');
document.write('</table>');
} else {
document.write('&nbsp;');
}
</script>
<textarea name="text" cols=70 rows=20 wrap="soft"></textarea>[/code:1:10e2edbaed]

That is the html. One of the things I want to add, is the insert link, when their is not text selected, it will popup a prompt asking for text to link, then it will proceed to the enter url link, then it will input html into the textarea. Also, the Image thing doesn't work I want a prompt that ask for the link to the image, then in inputs the answer to that prompt in to the textarea where the curser was.
 
Reply With Quote
  #10 (permalink)  
Old 06-19-2004, 03:27 PM
Junior Member
 
Join Date: 06-17-04
Posts: 19
iTrader: 0 / 0%
From what I understand..this is what you want the script to do:

1-Check to see if any text in any of your text area boxes is selected.If no..it will ask the user to type in a url in a prompt box.
2-It would write down the url in the text area where the cursor was.
3-It would check to see if any text is selected..if no,it will prompt the user again,this time asking for a link to an image.And then creates an image on the page whose src is the url the user entered,and then put the url that the user gave in the text box where the cursor was.
Is that what you want to do?Please correct me about anything you feel is not right,and I'll write down the script for you which you could then copy and paste into your document (sorry,i just feel its more fun to write my own scripts rather than debug someone elses).
Edit: How do you want to run the script?will it run when the user clicks a button?or when the page loads?or unloads?
 
Reply With Quote
  #11 (permalink)  
Old 06-19-2004, 03:35 PM
Ricoool's Avatar
Contributing Member
Latest Blog:
None

 
Join Date: 10-13-03
Location: wonderfull Copenhagen, DK
Posts: 653
iTrader: 0 / 0%
Quote:
Originally Posted by ATLien
I ment Javascript, I think. What is the difference?
Quote:
Originally Posted by ret_ali
i dont know how to tell you the difference like that
JavaScript is client side scripting, something the browser can understand and run, with JAVA you can bild a browser.
__________________
Ricool
webworker
Cybernation

The world is full of kings and queens
Who blind your eyes and steal your dreams
It's heaven and hell
 
Reply With Quote
  #12 (permalink)  
Old 06-19-2004, 03:45 PM
ATLien's Avatar
Contributing Member
 
Join Date: 10-13-03
Location: Atlanta, GA
Posts: 1,135
iTrader: 0 / 0%
all that was write except the url, if no text is selected, 2 promphts will popup, one asking for target text, the other asking for the actual url then it will input the html with the link text and the url filled in.

Also is the any way the image button can get the height and width of the image, and imput it in the img tag?
 
Reply With Quote
  #13 (permalink)  
Old 06-19-2004, 09:30 PM
imaginemn's Avatar
v7n Mentor
Latest Blog:
None

 
Join Date: 02-18-04
Location: Brownsville, Texas
Posts: 1,356
iTrader: 0 / 0%
Java is a programming language invented by a small group at Sun Microsystems and JavaScript is an interpreted scripting language. Java is a compiled, full-bodied programming language. The only thing Java and JavaScript share is the similar name, but they're entirely different tools.

Here is a sample "Hello World" in both languages.

JAVA CODE
[code:1:afc2f6da17]class myfirstjavaprog
{
public static void main(String args[])
{
System.out.println("Hello World!");
}
}[/code:1:afc2f6da17]

JAVASCRIPT CODE

[code:1:afc2f6da17]
document.write ("Hello, world!")
[/code:1:afc2f6da17]

imaginemn
__________________
Brownsville Web Design , McAllen Website Design, Harlingen Web Design
Website Design | Web Development | eCommerce | Search Engine Optimization (SEO)
 
Reply With Quote
  #14 (permalink)  
Old 06-20-2004, 06:47 PM
Junior Member
 
Join Date: 06-17-04
Posts: 19
iTrader: 0 / 0%
Quote:
Originally Posted by ATLien

Also is the any way the image button can get the height and width of the image, and imput it in the img tag?
bah..i'm confused ...which image are we talkin about here?
is it possible that you pm me with a copy of the HTML document attached?
 
Reply With Quote
  #15 (permalink)  
Old 06-20-2004, 08:47 PM
ATLien's Avatar
Contributing Member
 
Join Date: 10-13-03
Location: Atlanta, GA
Posts: 1,135
iTrader: 0 / 0%
I have already sent everything I can, the site has other stuff on it. This is the part that concerns the java. I was asking, the imge java that allows you to post a image, can java go and read the image, then input the height and width of the image in to the html when it puts it int eh textarea.
 
Reply With Quote
  #16 (permalink)  
Old 06-20-2004, 11:40 PM
sim sim is offline
Banned
Latest Blog:
None

 
Join Date: 01-23-04
Posts: 1,098
iTrader: 0 / 0%
I could use some java. I want a system very similar to the one at fileplanet.com where only a certain # of user's can download a file at once then the rest have to wait in line.
 
Reply With Quote
  #17 (permalink)  
Old 06-21-2004, 06:05 PM
Junior Member
 
Join Date: 06-17-04
Posts: 19
iTrader: 0 / 0%
Atlien:
OK i think I got it...but are you talking about uploading an image?because if this is the case then I cant help you with that...uploading an image is something beyong the scope of Javascript.However its possible that,they upload the image,and then you put the image somewhere on the page..then i could access its height and width properties.If the image is on another page then i dont know of anyway i could access its properties...if there is anyway then please let me know.Anyway..i'm going to start working on the page today.

Sim:
Sorry..i'm not offering help with Java..its javascript..and currently i dont know of anyway i can use it to control the number of users that are downloading a file.
 
Reply With Quote
  #18 (permalink)  
Old 06-21-2004, 06:13 PM
Junior Member
 
Join Date: 06-17-04
Posts: 19
iTrader: 0 / 0%
To put the image on the page doesnt mean you have to put it in the same directory the page is or something.you can link to an image off server by putting its url in the image tag.
 
Reply With Quote
  #19 (permalink)  
Old 06-21-2004, 06:49 PM
ATLien's Avatar
Contributing Member
 
Join Date: 10-13-03
Location: Atlanta, GA
Posts: 1,135
iTrader: 0 / 0%
No, I am not talking about uploading I am talking about linking to a of site image. Just like the img button used when posting ont his forum. Like when the person put sin the address, the java will go read the image and get the height and width.
 
Reply With Quote
  #20 (permalink)  
Old 06-21-2004, 07:18 PM
Junior Member
 
Join Date: 06-17-04
Posts: 19
iTrader: 0 / 0%
noo.. i cant think of anyway the script could go and read the image's height and width without putting the script on the page someway..may be you could make a preview sort of box to the left of the text box..where,after the user enters the image text,he would get the image on the page....,You can also use the help of PHP or any other language though..may be they let you get an image's properties.
anyway...do you want me to write the script ignoring the image bit or putting the image on the page and then get its properties?
if anyone else could help us out with this image thing then please do.
 
Reply With Quote
Go Back   Webmaster Forum > Marketing Forums > SEO Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with PHP scripting JustRetarded Coding Forum 4 05-27-2007 10:26 PM
Scripting languages besides php =) sim Coding Forum 13 02-26-2004 09:13 AM
Mad Scripting kwvarga Coding Forum 9 01-27-2004 08:47 AM
scripting help? John Scott Coding Forum 4 11-30-2003 05:41 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 04:06 PM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.