Jump to content


Photo

Reconhecer O Navegador! (?)


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

#1 anaideia

anaideia

    Novato no fórum

  • Usuários
  • 14 posts
  • Sexo:Não informado
  • Localidade:ABC / SP (São Bernado do Campo)

Posted 27/11/2003, 12:56

Olá, pessoal. Depois deu tópico criado na seção HTML: "Site estrago!", em que eu conto como o meu site ficou estragado quando eu comecei a usar outros navegadores além do IExplorer: Konquerer e Mozzilla, por exemplo.

Enfim, o colega Dinho Z. me sugeriu, através do forum, de usar um javascript para que reconheça e, de acordo com o navegador, carregue arquivos diferentes: folhas de estilo, por exemplo.

Seria assim, então: o visitante acessa o site com o IE e o navegador carrega uma folha de estilo para o IE; outro visistante acessa com o Mozzilla e o navegador carrega uma folha de estilo para o Mozzilla..... resultado: um site tem uma cara parecida para todos os (mais comuns) navegadores.

Pergunta: não há outro meio mais fácil de resolver o problema? Como é que o pessoal da WMonline faz para o site ficar com a mesma cara em todos os navegadores? Enfim, se não existe, alguém pode me passar este tal javascript?

Valeu.

Alexandre.
www.anaideia.pro.br (ainda estragado. Só fica certo com o Konquer)

#2 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 27/11/2003, 22:26

Há sim...

Crie seu site Standards Compliant. Ele funcionará em todos os browsers.

Não é difícil fazer isto. Basta um pouco de análise de browsers...

IE5+ suporta CSS1
Mozilla suporta CSS1
Opera5.5+ suporta CSS1

Isto já abr euma grande gama de possibilidades para você. Se você acha que é díficil, dê uma olhada: http://www.pontukom.com/www
Este é um site testado no IE, Mozilla, Opera e Netscape. Todos funcionam bem... em termos. O Opera possui um bug já conhecido e bem denunciado na bug community dele... cheque o link:

https://bugs.opera.c...type3=substring

Há 49 notificações sobre este mesmo bug. Se você não faz parte da equipe de bug trackers, vc não conseguirá acessar.
O que não funciona no Opera é o stop e scroll nos eventos onmouseover e onmouseout, assim como o wrap lines.

Construir um site que funcione bem, às vezes pode ser extremamente complicado, baseado no fato que o esforço é proporcional à complexidade. http://www.pontukom.com neste site, eu precisei usar o sistema que eu criei, chamado de resolução automática, para que as alturas ficassem perfeitas nos browsers.

Bem, chega de enrolação...
há um método do JS que funciona bem...

/msie/i.test(navigator.userAgent);

A primeira parte é uma regexp (expressão regular). a segunda é o método (i.test)... a terceira é onde você está procurando a regexp definida.

No caso, ele retornará true se o navegador for o msie (ou seja, o IE), e false se não for. Você pode aplicar o mesmo procedimento para os outros browsers (Gecko, Opera, ...).

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

#3 anaideia

anaideia

    Novato no fórum

  • Usuários
  • 14 posts
  • Sexo:Não informado
  • Localidade:ABC / SP (São Bernado do Campo)

Posted 28/11/2003, 11:25

Pô, Guilherme, valeu pela força, mas eu ainda não consegui enteder - muito bem -o que você respondeu. O que é criar um site no formato "Standards Compliant"? - como se faz isto?

Aliás, visitei o seu site - bacana, por sinal - e não vi nada de "especial" no seu código fonte para criar um padrão de apresentação para os navegadores. Você tem mais algumas dicas?

Inté.

Alexandre.
www.anaideia.pro.br
= = = = = = =

#4 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/11/2003, 16:47

Claro que tenho... milhares!!! =)

Uma dica primária:

O Opera possui um padding por default (cerca de 5 px) no documento. Se você atribuir via CSS margin: 0px; o IE e o Mozilla vão funcionar ok, mas no Opera não. Por isto, se você quiser que o documento começe no topo à esquerda, a partir de 0px e que funcione em todos os browsers, use margin: 0px; padding: 0px; na definição CSS do body.

Definir bordas é interessante. Muito das coisas que eu usei no site que estou criando (o com o www no endereço) utiliza bordas e background.

Bem, com isto, vc pode facilmente extinguir sua sintaxe primária de HTML, tais como: <body bgcolor="#00FF00"> e passar a utilizar algo mais maleável (como o rgb, que consegue até 16 milhões de cores) com o CSS: <body style="background: rgb(0, 255, 0);">

Os itens fundamentais que distinguem quando um documento é criado a partir do DreamSUX ou do melhor (Bloco de Notas ou qualquer outro editor não visual (WYSYWYG)) são: o padding e margin.
Eles definem o espaçamento mínimo entre um item e outro. Exemplo:
Código do DreamSUX:
<table bgcolor="red" width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="20%">Nome:</td>
    <td id="spacer" width="100"></td>
    <td><input type="text" ...></td>
  </tr>
</table>

Vejamos o mesmo código (que faz a mesma cois de um programador BN (Bloco de Notas)):
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background: red;">
  <tr>
    <td width="20%">Nome:</td>
    <td style="padding-left: 100px;"><input type="text" ...></td>
  </tr>
</table>

O cellpadding, cellspacing e border em tabelas possuem comportamento anormal no Opera, por isto é mais aconselhável deixá-lo na tag.
Observe o código... na primeira eu usei 3 colunas, no segundo, apenas duas. O Dream se acha muito esperto e acaba comentendo burradas desnecessárias na criação de documentos. Um site com 23 kb (como o da pasta www que eu te enviei, não ficaria por menos de 50 no DreamWeaver).

São coisas simples, que você adquire com o tempo que torna seu site SC. Estudar ajuda, mas é praticamente (naum digo teoricamente) impossível ler sobre 10 linguagens e saber tudo de todas. Não há um ser humano que consiga aprender 10 ling. simultaneamente. Isso é do tempo.

Bem, com o tempo, vai postando suas dúvidas, trechos para otimização de código que vamso respondendo. Matar o coelho numa cajadada só demanda muito tempo.

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

#5 Miguceamma

Miguceamma

    MiguPenjisse

  • Usuários
  • 13201 posts

Posted 22/09/2017, 22:53

Amoxicillin For Kennel Cough online pharmacy Generic Viagra Overnight Shipping
Levitra Durata
FarmРÑСÑcia Italiana Q Vende Cytotec <a href=http://cialtobuy.com>cheap cialis</a> Discount Pharmacy Pill
Preis Viagra Sildenafil cialis Preisvergleich Viagra Rezeptfrei
Viagra Internet Forum Looking For Viagra
Cialis Generico Vendita In Italia <a href=http://cialtobuy.com>cialis</a> Viagra Online Bestellen Legal

#6 Miguceamma

Miguceamma

    MiguPenjisse

  • Usuários
  • 13201 posts

Posted 08/10/2017, 07:27

On Sale Discount Isotretinoin Tablets Online Visa Accepted viagra Se Utiliza La Propecia Propecia Mental Side Effects Noticed
Thyroxine Online No Prescription Viagra Tadalafil Medications Like Seroquel cialis and levitra Fluoxetine Need Legally Low Price With Free Shipping Tab Progesterone Overseas Achat Amoxicillin Prescrire United Nations Medicament

#7 Miguceamma

Miguceamma

    MiguPenjisse

  • Usuários
  • 13201 posts

Posted 26/10/2017, 06:22

Letrozole viagra Propecia Shed Hair Loss
Comprar Cialis Original Generico Clomid Effet Secondaire Levitra Elado viagra online Is Amoxicillin The Same As Penicilin
Make Your Own Amoxicillin Generic Secure Ordering Levaquin Website Thamesdown Where Can I Buy Orlistat In Us buy levitra on line Discount Pyridium Low Price Overseas

#8 RonsisM

RonsisM

    Super Veterano

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

Posted 26/10/2017, 16:57

Comprar Levitra Farmacias Andorra generic viagra levitra Zithromax Chlamidia Is Cephalexin Good Antibiotic For Pneumonia
Best Price Viagra Get Viagra Fast cialis Indicaciones De Propecia

#9 gapedlok

gapedlok

    24 Horas

  • Usuários
  • 425 posts
  • Sexo:Feminino
  • Localidade:Albufeira

Posted 27/10/2017, 11:55

Discounts! best buy product search progect11.jpg Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked! If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included). buy.png READ MORE 7A Russian Virgin Hair Straight 4 Bundles Silky Straight Russian Hair Virgin Russian Straight Hair Perucas Cabelo Humano Queen ( 79.20 $)7a luxury brazilian clip in human hair extensions natural blends hair clip in human silky straight human hair clip in extensions ( 24.99 $)Vintage turn-down collar sleeveless bowknot embellished solid color women's dress ( 20.92 $)Simplee Embroidery female blouse shirt Casual blue striped shirt 2016 autumn winter cool long sleeve blouse women tops blusas ( 24.98 $)Kiner, KetrinBlack Leather Skinny Belt ( 67.20 $)Brazilian Deep Wave 7a Deep Wave Brazilian Virgin Hair Deep Curly Brazilian Hair Weave Bundles Alionly Curly Weave Human Hair ( 45.00 $)Wholesale 2016 new 9 inch monitor video intercom door phone doorbell system ir night vision 900tvl hd camera door bell wired ( 119.04 $)8a grade 4 bundles peruvian straight hair with closure peruvian virgin hair with closure straight virgin human with closure ( 37.00 $)транспортир +для грм змз 406 купить3 category Flytrap Seed Bonsai Potted Dionaea Muscipula Plant Seed Terrace Garden Carnivorous Plant Seed 1 Package 100 Pieces ( 0.99 $)Blue, Brown and Ivory Woven Silk Tie ( 55.00 $)KELUSHI xq-350 RJ11 RJ45 Cat5 Cat6 Telephone WireTracer Toner Ethernet UTP LAN Network Cable Tester Detector Line Finder ( 20.46 $)Paint coat car-covers ceramic pro liquid glass coating car wax motorcycle paint care ceramic 9h coating car paint scratch repair ( 87.80 $)Zweihnder E27 G80 5W 500LM SMD 2835 LED Light Bulb ( $4.39 ) 72bb.jpg
Discounts! best products catalog showroom

progect11.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
Hc1136 sexy tattoo stickers body art harajuku fake tattoo waterproof temporary tattoo stickers men women letter ( 0.60 $)
Ms cat hair 7a peruvian virgin hair with closure 3 bundles ombre weave with closure 1b burgundy ombre human hair with closure ( 105.49 $)
Tactical Reflex RedGreen Laser 4 Reticle Holographic Projected Dot Sight Scope Airgun Rifle sight Hunting Rail Mount 20mm ( 43.11 $)
7 inch Chuwi Vi7 Android 5.1 3G Phablet-56.42 $
XINLIN X163F 5.8G FPV 2 Mega Camera 2.4G 4 Channel 6-axis Gyro Quadcopter-113.20 $
Clever Dog 720P HD WiFi Smart IP Camera-37.00 $
Shishamo lb200 fishing reel left right hand fishing bait casting reel with one way clutch durable baitcaster coil fishing reel ( 34.40 $)
Curved fine leather wallet ( 191.29 $) Sophie Hulme
купить аккаунт бателфилд 3 премиум
80pcsbag Quality 30mm Child baby Small Rubber Bands Elastic Ponytail Holders Hair Ring Accessories Girl Rubber Bands Tie Gum ( 2.45 $)
Braun, Kristi
Peruvian Virgin Hair Body Wave 4 Bundles Deal 7A Unprocessed Peruvian Body Wave Peruvian Hair Virgin Human Hair Weave Bundles ( 43.00 $)
7a brazilian virgin hair 4 bundles straight human hair virgin brazilian straight hair unprocessed brazilian virgin hair straight ( 70.00 $)
A suit of trendy style engraved rhinestone rings for women ( 3.10 $)
Brazilian lace frontal closure with bundles 3 pieces hair with lace closure straight brazilian virgin hair with closure grade 8a ( 28.00 $)


58.jpg
Discounts! best building products

progect11.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
Wavy line print long sleeve round neck color block plus size t-shirt ( 9.89 $)
Leisure solid color and mesh design men's athletic shoes ( 32.30 $)
Marilena - Murano Glass Marine Gold Plated Bracelet ( 78.00 $)
подростковые антиутопии книги
GRUST
nike wmns dunk sky hi
Black and blue leather voyager wallet clutchw studs ( 187.23 $) Zadig Voltaire
Ethnic women backpack for school teenagers girls vintage stylish school bag ladies canvas backpack female back pack high quality ( 33.96 $)
New electronic accessories travel bag nylon mens travel organizer for date line sd card usb cable digital device bag ( 12.16 $)
Peruvian virgin hair straight full 7a unprocessed virgin hair 3 bundles beauty plus peruvian straight hair short hair extensions ( 124.00 $)
Darth Vader Party Plastic Mask for Cosplay Gift ( $2.79 )
Jack Purcell LTT Ox White and Road Trip Blue Mens Sneaker ( 65.00 $)
GUA-50 50g Soldering Paste ( $2.07 )
New 2016 kids cute emoji printing school bags children canvas backpacks for teenager girls casual women laptop mochila feminina ( 29.99 $)
Time limit 100 particles a large collection of all kinds of rare rose seeds perennial flowers ( 0.51 $)


46bb.jpg
Discounts! brand new makeup products progect11.jpg Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked! If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included). buy.png READ MORE замена шкива коленвала1 Case +30 Rolls Mixed Colors Nail Rolls Striping Tape Line DIY Nail Art Tips Decoration Sticker Nail Art Metallic Yarns Strips ( 4.86 $)Elephone W2 Smart Bluetooth Watch Classic Smartwatch-45.72 $sky force 2014 много звездImageMagick skachat besplatno ImageMagick 7.0.5.4FINOW X5 Plus Smartwatch Phone-139.99 $2016 New Fashion 6Pcs Girls Crystal Snowflake Hair Clips Hair Pins Headwear Crystal Accessories Hair Clips Wholesale ( 4.49 $)who +is +on +the phoneStylish women's jewel neck short sleeve geometrical printed jumpsuit ( 17.61 $)Vernee Apollo 4G Phablet-361.26 $361.262 4a magnetic charge micro usb data cable charging cable android charger cord for iphone 7 ( 2.88 $)Company store REDMONDCognac Smooth Leather Belt ( 81.60 $)Stylish women's round neck sleeveless animal print dress ( 11.03 $)K9 crystal led pendant lamp with 6 lights fixtures in purple handing light lustres e pendentes lamparas colgantes ( 102.48 $) 109bb.jpg
Discounts! best product website design

progect11.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
WLXY Electric Alloy Steel Grinding Saw Blade + Connecting Rod for Sawing Wood Plastics ( $1.58 )
7a brazilian body wave wet and wavy virgin brazilian hair bundles brazilian virgin hair 3 bundles deals cheap human hair bundles ( 59.17 $)
шкив коленвала пежо 406 2.0 hdi купить
Hot brazilian virgin human hair wigs ombre curly lace front human hair wigsfull lace wigs two tone with baby hair around ( 109.85 $)
nike air force 1 mid black
Gold Line- Pin Striped Diagonal Lines Woven Silk Tie ( 50.96 $)
Teclast X98 Plus Windows 10 + Android 5.1 Tablet PC-176.59 $
Simple hasp and solid color design women's tote bag ( 19.30 $)
Sterling Silver Chocolate Cake Necklace ( 89.00 $)
2pcs 4 inch 18w led work light off road 4x4 4wd atv utv suv driving motorcycle light truck fog lamp headlight spot flood 12v 24v ( 37.46 $)
Car air freshener filled with jasmine scented green tea Automobile air conditioner outlet perfume solid Perfume Car styling ( 0.50 $)
Cheerson CX — 36 RC Quadcopter RTF-26.00 $
read +and draw lines перевод
12 Holes Ocarina Ceramic Alto C Legend of Zelda Ocarina Flute Blue Instrument-10.41 $
Original Smok Beasts Kit TF-T4 and TF-R3 RBA Coil Head ( $8.25 )


152.jpg

#10 Miguceamma

Miguceamma

    MiguPenjisse

  • Usuários
  • 13201 posts

Posted 06/11/2017, 05:33

Amoxicillin Info viagra Women Cialis Reviews Viagra 200mg To 400
Amoxicillin Rash Ebv online pharmacy Viagra Pagamento Alla Consegna

#11 Miguceamma

Miguceamma

    MiguPenjisse

  • Usuários
  • 13201 posts

Posted 09/02/2023, 11:55

A doctor or dermatologist will often diagnose perioral dermatitis with just a visual examination of your skin, along with your medical history finasteride 5 mg for sale
buy viagra and cialis online In a Swedish trial of treatment with tamoxifen 40 mg day for two or five years, Rutqvist et al
Several CV outcomes trials have shown that the sodium glucose cotransporter 2 inhibitor SGLT2i class of antihyperglycemic drugs reduces the risk of HF related outcomes in patients with T2D and either established CV disease or multiple CV risk factors ivermectin human dosage This inflammation mediated increase in LPA signaling could diminish the efficacy of subsequent rounds of radiation treatment and contribute to radiation induced fibrosis, especially through activation of LPAR1 1




1 user(s) are reading this topic

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

IPB Skin By Virteq