Rabu, 27 Januari 2010

Removing Frame from Google Image Search, Blogcatalog, and Digg

Do you have any wallpaper site or photos site which get lot of traffic but there is no conversion? I know you might get frustrated to solve this problem. The problem is usually image search traffic from google search engine will bring visitors on a frame, this frame should have to be removed to get full page attention.

Using this trick it should can break any frames coming to your website. The risk behind this code already known and confirmed by some webmaster. This code can bring down your your SERP in time, also your site might got penalties. The good side, people already try using this code get more accurate data from analystic.

<script language=”JavaScript” type=”text/javascript”>
if (top.location != self.location) top.location = self.location;
</script>
Put this code in your page code it should works like magic removing frames, usually people will put it on header files. Please note, I’m NOT recommended you to use this code because you already know the risk of using this code. If you still using this code that mean you’re using it at your own risk.

Minggu, 03 Januari 2010

Open Link in New Window and Resize It

If you completed the assignments in the previous session you know how to open new windows. Like the alert() method, the open() also takes arguments. When used without any arguments, the new window displayed is blank. Here I tell you how to embellish this new window.

<A HREF="javascript:void(0)"

onclick="window.open('welcome.html')">

Open a new window</A>

Open a new window

This opens a new window with welcome.html page.

The arguments of JavaScript open()

The open() method takes four arguments:

window.open('URL', 'NAME', 'FEATURES', 'REPLACE')

We have already seen that if we provide the URL of a document through the first argument, it will be loaded in the new window.

NAME: specifies a name for the new window that can then be used as value for the TARGET attribute of <A> tags.

FEATURES: let you define properties of the window such as width, height, presence or absence of scrollbars, location bar, stauts bar etc. The list of features is quite daunting so we shall go over them gradually.

REPLACE: takes a boolean value... we won't bother ourselves with this argument!

<A HREF="javascript:void(0)"

onclick="window.open('welcome.html','welcome')">

Open a new window</A>

Open a new window



Kamis, 29 Mei 2008

Pengenalan JavaScript

JavaScript adalah sebuah bahasa script paling populer dan paling banyak dipakai, juga bekerja di semua browser utama, seperti Internet Explore, Mozilla, Firefox, Opera, dll. JavaScript dipakai untuk mempercatik design sebuah halaman web, validasi form, security (keamanan), dan banyak lagi.

Apa itu JavaScript ?

JavaScript adalah sebuah bahasa pemrograman, yang menempel dan bekerja pada halaman HTML. Dan disebut sebagai bahasa script karena program JavaScript dapat bekerja langsung tanpa diperlukan dicompile. JavaScript bersifat OpenSource -dapat dipakai, dibuat, atau dimodifikasi secara gratis oleh siapa saja.

Kegunaan JavaScript

  • Banyak sekali kegunaan JavaScript diantaranya memberikan designer sebuah bahasa pemrograman yang bisa menjadikan sang designer menjadi programmer juga. Sehingga nantinya dengan menggunakan JavaScript sebuah halaman web tidak lagi statis.
  • JavaScript dapat bekerja pada sebuah events, JavaScript dapat dieksekusi ketika terjadinya event tertentu seperti ketika user melakukan click, ketika halaman di-load, dan ketika event-event lainnya.
  • JavaScript dapat membaca dan menulis elemen HTML.
  • JavaScript dapat digunakan untuk validasi data, JavaScript dapat digunakan untuk memvalidasi form sebelum form tersebut di-submit atau dieksekusi oleh server.
  • JavaScript dapat digunakan untuk mendeteksi browser yang digunakan visitor.
  • JavaScript dapat digunakan untuk membuat cookies, JavaScript dapat digunakan untuk menaruh dan menerima informasi dari komputer visitor.

Sabtu, 24 November 2007

[JavaScript] Re: Client IP address

1. There's no (legitimate) way to get this type of info past a proxy or
gateway.

2. Don't hijack threads. If you're starting a new topic, please start a
new thread.

> Posted by: "Anand Subramanian" axsubram@yahoo.com axsubram
> Date: Fri Nov 23, 2007 9:37 am ((PST))
>
> Hi,
>
> What is the best way to get the IP address of the client machine of
> the website visitor. We tried a few options, but in most cases we are
> getting the address from the ISP/Proxy such that we get the same
> address for multiple machines in our office.
>
> We are trying to build a voting page and want to do duplicate
> checking (not too scientific, but decent) using IP addresses. Please
> help how to get differnet IP addresses for machines even though they
> use the same proxy or ISP?
>
> thanks
>
> Anand
>
>
> ----- Original Message ---- From: L. Miller <anmldr@bellsouth.net>
> To: JavaScript_Official@yahoogroups.com Sent: Thursday, November 22,
> 2007 1:45:11 AM Subject: [JavaScript] Border
>
> I found the answer. Thanks anyway.
>
> border="0"
>
> Linda
>
> P.S. I didn't respond to my own message because this group is
> moderated. Sorry about that. My message was not yet posted before I
> found the answer.

--
This message has not been scanned for viruses.

Since I do not use a Microsoft operating
system or software, and use only plaintext
for email, there is little need for me to do so.

Jumat, 23 November 2007

[JavaScript] Re: question about confirm box in javascript

Yes, using div is the best idea. It is being used everywhere now a
days. You can give the div an alert box like look. Also you can make
it draggable, use script aculo for that.

Visit http://aiaiai.com for more groups to join
Yahoo! Groups Links

<*> To visit your group on the web, go to:

http://groups.yahoo.com/group/JavaScript_Official/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:

http://groups.yahoo.com/group/JavaScript_Official/join

(Yahoo! ID required)

<*> To change settings via email:
mailto:JavaScript_Official-digest@yahoogroups.com
mailto:JavaScript_Official-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
JavaScript_Official-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

http://docs.yahoo.com/info/terms/

Re: [JavaScript] question about confirm box in javascript

No, it is not possible to change these parameters in an alert box.
This is a very basic browser interface. If you really - absolutely -
need these changes, create your own popup. Or, you can do this
interactively by creating a <div> element with visible="false", and
then setting visible="true" to display it.

--Tim Sabin


> hi
>
> following is the code i am using presently =
>
> ======================================
> msg = "Selecting OK means you will no longer receive emails. If you
> wish to continue to hear from us, click on Cancel and you will be
> taken to our homepage.";
>
> if (confirm(msg)) return true;
> else window.navigate("http://www.websitename.com"); return false;
> return true
> ======================================
>
> my question is about confirm pop up box.
>
> 1.
> is it possible to change the title of the confirm box to "Are you
> Sure"
>
> 2.
> and instead of "ok cancel" buttons that appear for confirm box can
> we specify "yes no"
>
> please advice.
>
>
>
>
>
> Visit http://aiaiai.com for more groups to join
> Yahoo! Groups Links
>
>
>
>
>

--Tim Sabin

Visit http://aiaiai.com for more groups to join
Yahoo! Groups Links

<*> To visit your group on the web, go to:

http://groups.yahoo.com/group/JavaScript_Official/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:

http://groups.yahoo.com/group/JavaScript_Official/join

(Yahoo! ID required)

<*> To change settings via email:
mailto:JavaScript_Official-digest@yahoogroups.com
mailto:JavaScript_Official-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
JavaScript_Official-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

http://docs.yahoo.com/info/terms/

[JavaScript] Client IP address

Hi,

What is the best way to get the IP address of the client machine of the website visitor.
We tried a few options, but in most cases we are getting the address from the ISP/Proxy such that we get the same address for multiple machines in our office.

We are trying to build a voting page and want to do duplicate checking (not too scientific, but decent) using IP addresses. Please help how to get differnet IP addresses for machines even though they use the same proxy or ISP?

thanks

Anand


----- Original Message ----
From: L. Miller <anmldr@bellsouth.net>
To: JavaScript_Official@yahoogroups.com
Sent: Thursday, November 22, 2007 1:45:11 AM
Subject: [JavaScript] Border

I found the answer. Thanks anyway.

border="0"

Linda

P.S. I didn't respond to my own message because this group is
moderated. Sorry about that. My message was not yet posted before I
found the answer.

____________________________________________________________________________________
Be a better sports nut! Let your teams follow you
with Yahoo Mobile. Try it now.

http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ

[Non-text portions of this message have been removed]

Visit http://aiaiai.com for more groups to join
Yahoo! Groups Links

<*> To visit your group on the web, go to:

http://groups.yahoo.com/group/JavaScript_Official/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:

http://groups.yahoo.com/group/JavaScript_Official/join

(Yahoo! ID required)

<*> To change settings via email:
mailto:JavaScript_Official-digest@yahoogroups.com
mailto:JavaScript_Official-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
JavaScript_Official-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

http://docs.yahoo.com/info/terms/