Jump to content


Photo

Htc


  • Faça o login para participar
11 replies to this topic

#1 Without a Nick

Without a Nick

    Sem culpa no cartório

  • Usuários
  • 2378 posts
  • Sexo:Não informado
  • Localidade:Guarulhos

Posted 26/10/2003, 15:28

Raramente já vi isso. É um estilo de página (acho que é ligado HTML) que tem a extensão .HTC

O que ela faz? Tem tags especiais, como o Cold Fusion?


WITHOUT A NICK

#2 cybermix

cybermix

    andrewsmedina.com.br

  • Ex-Admins
  • 3586 posts
  • Sexo:Não informado
  • Localidade:Não sou desse planeta não!!!!
  • Interesses:python, fireworks, linux, php, flash...

Posted 27/10/2003, 10:42

htc,
nao é nada + que um componente html, ela é uma linguagem, derivada do html, que serve para criar e utilizar componentes que interagem com o html.

HTC referencia em ingles

Ele tem sua tags diferenciadas, mas nao é uma linguagen de desenvolvimento para web como o cold fusion
www.andrewsmedina.com.br

#3 Guilherme Blanco

Guilherme Blanco

    Loading...

  • Conselheiros
  • 891 posts
  • Sexo:Masculino
  • Localidade:São Carlos - SP/Brasil
  • Interesses:Programação Web e minha namorada (Maria Camila).

Posted 28/10/2003, 09:35

É muito mais do que isso... =)

HTC significa HTML Component.
Este recurso funciona somente no IE5+, sendo uma linguagem exclusiva da Microsoft.

O que HTC pode fazer?
HTC é capaz de alterar objetos pré-programados do Windows, como comboboxes, input boxes, etc, deixando-o customizéveis (já viram um combobox som a borda da cor que vc quer ao invés de buttonface (cor padrão)?)... Pois então... HTC permite isso.

No Mozilla, existe a XUL que faz a mesma coisa, mas a implementação é baseada em XML ao invés de JS (como é com HTC).

Bem, como não poderia deixar barato, estou enviando um código em HTC.

<PUBLIC:COMPONENT>
<PUBLIC:ATTACH EVENT="onmousedown" ONEVENT="moveme_onmousedown()"/>
<!--<PUBLIC:ATTACH EVENT="oncontentready" ONEVENT="initPosition()"/>-->
<!--<PUBLIC:ATTACH EVENT="onmousemove" ONEVENT="moveme_onmousemove()"/>-->
<PUBLIC:PROPERTY NAME="handlefor"/>
<PUBLIC:PROPERTY NAME="dontraise"/>

<script>

///////////////////////////////////////////////////////////////////////
//     This script was designed by Erik Arvidsson for WebFX          //
//                                                                   //
//     For more info and examples see: http://webfx.eae.net          //
//     or send mail to erik@eae.net                                  //
//                                                                   //
//     Feel free to use this code as lomg as this disclaimer is      //
//     intact.                                                       //
///////////////////////////////////////////////////////////////////////



var dragobject = null;
var tx;
var ty;

function moveme_onmousedown() {
	if (handlefor != null) {
  dragobject = element.document.getElementById(handlefor);
	}
	else
  dragobject = element;

	if (dragobject == null) return;
  
	if (!dontraise) makeOnTop(dragobject);
  
	ty = window.event.clientY - getTopPos(dragobject);
	tx = window.event.clientX - getLeftPos(dragobject);
  
	window.event.returnValue = false;
	window.event.cancelBubble = true;
}

function moveme_onmouseup() {
	if(dragobject) {
  dragobject = null;
	}
}

function moveme_onmousemove() {
	if (dragobject) {
  if (window.event.clientX >= 0 && window.event.clientY >= 0) {
  	dragobject.style.left = window.event.clientX - tx;
  	dragobject.style.top = window.event.clientY - ty;
  }
  window.event.returnValue = false;
  window.event.cancelBubble = true;
	}
}

function getLeftPos(el) {
	if (el.currentStyle.left == "auto")
  if (el.currentStyle.position != "relative")
  	return el.offsetLeft;
  else
  	return 0;
	else
  return parseInt(el.currentStyle.left);

}

function getTopPos(el) {
	if (el.currentStyle.top == "auto")
  if (el.currentStyle.position != "relative")
  	return el.offsetTop;
  else
  	return 0;
	else
  return parseInt(el.currentStyle.top);
}

function makeOnTop(el) {
	var daiz;
	var max = 0;
	var da = element.document.all;
	
	for (var i=0; i<da.length; i++) {
  daiz = da[i].style.zIndex;
  if (daiz != "" && daiz > max)
  	max = daiz;
	}
	
	el.style.zIndex = max + 1;
}

if (currentStyle.position != "absolute" && currentStyle.position != "relative")
	style.position = "relative";

style.cursor = "move";

element.document.attachEvent("onmousemove", moveme_onmousemove);
element.document.attachEvent("onmouseup", moveme_onmouseup);
</SCRIPT>
</PUBLIC:COMPONENT>

Para usar, simplesmente faça: behavior: url("genmove.htc"); na declaração CSS do objeto.

[]s,
<script language="WebFórum">
// Dados:
Nome("Guilherme Blanco");
Localidade("São Carlos - SP/Brasil");
Cargo("Manutenção");
</script>

#4 cybermix

cybermix

    andrewsmedina.com.br

  • Ex-Admins
  • 3586 posts
  • Sexo:Não informado
  • Localidade:Não sou desse planeta não!!!!
  • Interesses:python, fireworks, linux, php, flash...

Posted 28/10/2003, 10:23

muito interessante GB,

eu tinha dado uma lida sobre isso mas so por cima. Mas HTC tem extensao .htc ela roda em qualquer server, ou tem alguma limitacao?
www.andrewsmedina.com.br

#5 Guilherme Blanco

Guilherme Blanco

    Loading...

  • Conselheiros
  • 891 posts
  • Sexo:Masculino
  • Localidade:São Carlos - SP/Brasil
  • Interesses:Programação Web e minha namorada (Maria Camila).

Posted 01/11/2003, 12:52

Roda em qualquer server.

A única limitação é que funciona somente no IE5+.

[]s,
<script language="WebFórum">
// Dados:
Nome("Guilherme Blanco");
Localidade("São Carlos - SP/Brasil");
Cargo("Manutenção");
</script>

#6 Without a Nick

Without a Nick

    Sem culpa no cartório

  • Usuários
  • 2378 posts
  • Sexo:Não informado
  • Localidade:Guarulhos

Posted 01/11/2003, 13:42

Obrigado aos dois.


WITHOUT A NICK

#7 Rehzus

Rehzus

    Normal

  • Usuários
  • 98 posts
  • Sexo:Não informado

Posted 14/05/2004, 09:34

Nossa, q feeeeraaaaaa!

Nem precisou de flash nem JavaScript fodidao para fazer com que uma camada seja arrastada (com drag and drop).

Curti d+!

Eh sempre bom e prazeroso descobrir novos recursos nessa área.

Valeu ai Guilherme Blanco.

(y) (y) (y) (y) (y) (y)
"A imaginação é muito mais importante que o conhecimento" (Albert Einstein)

#8 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 22/09/2017, 19:57

Cabaser online pharmacy Free Samples Viagra Jellies Uk
Viagra Es Il Cialis One Day
Amoxicillin Reaction Rash No Other <a href=http://cialtobuy.com>cialis</a> What Stores Sell Propecia
Viagra Pagamento Paypal cialis Cytotec Avant Pose De Sterilet
Cialis 5 Gr
Sandia Viagra <a href=http://cialtobuy.com>cialis</a> Prezzi Propecia Finasteride 1mg
Comment Se Procurer Du Baclofene online pharmacy Can I Take Two Nexium Over The Counter
Pastillas Cialis Yahoo Cialis Generic Best Price
Knee Infection Keflex Dosage <a href=http://cialtobuy.com>cialis</a> Best Generic Viagra Review

#9 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 21/10/2017, 08:04

Viagra 20 Mg Online Pharmacies For Viagra Amoxil Mg viagra Best Place On Internet To Buy Cialis Isotretinoin Izotek Baltimore
Vidal Clomid Low Cost Viagra 100mg Brand 5 Bucks Cout Levitra 10 cheap cialis Wiki Amoxicillin Zithromax Generic Cost

#10 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 03/11/2017, 02:21

Can I Purchase Free Shipping Levaquin 750mg viagra Priligy Generico Chile Viagra Em Farmacia De Manipulacao

#11 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 24/11/2017, 08:42

Online Dutasteride Baldness Overnight Shipping Formula Of Amoxicillin levitra 40 mg best price Doxycycline Lyme Substitute Can A Puppy Drink Cephalexin
Zithromax Generic Side Effects get online levitra prescription Balding Propecia

#12 JeffMalm

JeffMalm

    Super Veterano

  • Usuários
  • 12254 posts
  • Sexo:Feminino
  • Localidade:Mount Carey

Posted 11/02/2023, 08:45

The phenotypic differences between the work of Lepper et al generic version of viagra
priligy otc He took the first step blood pressure meds frequent urination hard, Heavy breathing filled the room, Karajan finally stood in front of Elises, Elises opened her eyes and looked at Karajan quietly
buy cialis online overnight shipping From these data, the investigators determined that if the same trends continue, 55 38 of the 69 patients still in treatment now will complete therapy




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq