Jumat, 28 Februari 2025

Mengubah Tampilan Dokumen Microsoft Word

Mode tampilan dokumen yang ada di Microsoft Office Word 2007 seperti Print Layout (tampilan default dokumen Word. Ini akan menampilkan seperti apa tampilan dokumen ketika dicetak.), Full Screen Reading tampilan untuk presentasi, Web Layout tampilan untuk membaca.

Mengubah Tampilan Dokumen Microsoft Word Di Pojok Kanan Bawah

Untuk mengaturnya Anda hanya perlu memilih Page View Option Buttons di pojok kanan bawah halaman kerja (Work Space / GUI parts) Microsoft Word.


Mengubah Tampilan Dokumen Microsoft Word Melalui Ribbon

Namun jika Anda ingin mengubah mode tampilan dokumen Microsoft Word melalui Ribbon. Maka berikut ini langkah-langkah yang bisa Anda coba untuk mengubah tampilan dokumen Microsoft Word.
  1. Pertama masuk di Ribbon Tab Menu View yang ada di menu Ribbon.
  2. Pada bagian Ribbon Group Document Views, pilih mode tampilan dokumen supaya bisa menampilkan tampilan dokumen Microsoft Word menjadi sesuai dengan kebutuhan Anda.

Catatan: 
  • Gambar di atas dapat di-click untuk melihat gambar dengan jelas.
  • Untuk mempelajari pelajaran lain, cari di website blog ini atau klik di bagian Related Post di bawah. Jika diperlukan, silakan belajar ke bagian Bibliography.

Bibliography

https://minarsih.com/
https://support.microsoft.com/
https://www.sobat-tutorial.com/

Related Post

AsciiDoctor Table Tutorial 4

1. Open the Asciidoctor editor.
2. type this following Asciidoctor code in the Asciidoctor editor:
= Cara menjaga kebersihan lingkungan

.Di bawah ini beberapa contoh dari cara menjaga kebersihan lingkungan:
[options="header, footer", width=50%]
|===
|Hari | Kegiatan

| Senin  
a| +++<input type="checkbox" checked disabled>+++ Kerja bakti membersihkan lingkungan dan menggunakan masker saat tingkat polusi udara tinggi.

| Selasa 
a| +++<input type="checkbox" checked disabled>+++ Membersihkan halaman dan telajakan/pematang/trotoar di sekitar rumah.

| Rabu   
a| +++<input type="checkbox" checked disabled>+++ Sampah yang dihasilkan rumah tangga selanjutnya kita pilah menjadi tiga, sampah organik, sampah non organik dan sampah botol atau pecah belah.

| Kamis
a| +++<input type="checkbox" checked disabled>+++ Perlu juga diatur jadwal untuk kegiatan kerja bakti membersihkan lingkungan kantor, toko dan sekitar rumah.

| Jumat
a| +++<input type="checkbox" checked disabled>+++ Hal yang tidak kalah penting  adalah menanam tanaman. Tanaman mempunyai banyak fungsi yaitu sebagai penyaring debu, penyimpan air tanah, penyejuk dan pendingin alami. Selain itu tanaman juga dapat dijadikan sebagai taman yang akan memberikan suasana asri dan indah lingkungan sekitar kita.Dengan adanya pohon yang rindang, taman yang asri, otomatis kita akan menjadi nyaman dan betah di rumah maupun di kantor dalam melaksanakan tugas sehari-hari.

| Sabtu
a| +++<input type="checkbox" checked disabled>+++ Mengurangi sistem transportasi yang tidak efisien dengan menghemat bahan bakar dan mengurangi angkutan pribadi;

| Minggu
a| +++<input type="checkbox" checked disabled>+++ Melakukan penyuluhan atau sosialisasi adalah hal yang diperlukan agar orang-orang mengetahui bagaimana pentingnya upaya menjaga kebersihan lingkungan. Ini akan menyadarkan banyak orang akan bahaya lingkungan kotor dan memotivasi agar bisa menjaga kebersihan lingkungan.
|===

= Cara - Cara Menghemat Energi Listrik
.Di bawah ini beberapa contoh dari cara untuk menghemat energi listrik:
|===
a|+++<input type="checkbox" checked disabled>+++ Memanfaatkan cahaya matahari untuk menerangi rumah pada pagi hari hingga sore hari.
a|+++<input type="checkbox" checked disabled>+++ Memasang daya listrik di rumah sesuai keperluan.
a|+++<input type="checkbox" checked disabled>+++ Mematikan  kipas angin atau penyejuk ruangan ketika ruangan sedang sejuk.
a|+++<input type="checkbox" checked disabled>+++ Mematikan sakelar lampu jika sudah tidak diperlukan.
a|+++<input type="checkbox" checked disabled>+++ Mematikan sakelar lampu saat kondisi ruangan cukup cahaya.
a|+++<input type="checkbox" checked disabled>+++ Membatasi waktu menonton televisi.
a|+++<input type="checkbox" disabled>+++ Membeli Tangki Penampungan Air.
a|+++<input type="checkbox" checked disabled>+++ Mencabut kabel dari stopkontak apabila sudah tidak digunakan.
a|+++<input type="checkbox" checked disabled>+++ Mencabut pengisi daya telepon seluler atau laptop yang terpasang di stopkontak.
a|+++<input type="checkbox" disabled>+++ Mengatur Suhu Sesuai Kebutuhan.
|===
3. Result, similar like this:

Cara menjaga kebersihan lingkungan

Table 1. Di bawah ini beberapa contoh dari cara menjaga kebersihan lingkungan:
Hari Kegiatan

Senin

Kerja bakti membersihkan lingkungan dan menggunakan masker saat tingkat polusi udara tinggi.

Selasa

Membersihkan halaman dan telajakan/pematang/trotoar di sekitar rumah.

Rabu

Sampah yang dihasilkan rumah tangga selanjutnya kita pilah menjadi tiga, sampah organik, sampah non organik dan sampah botol atau pecah belah.

Kamis

Perlu juga diatur jadwal untuk kegiatan kerja bakti membersihkan lingkungan kantor, toko dan sekitar rumah.

Jumat

Hal yang tidak kalah penting adalah menanam tanaman. Tanaman mempunyai banyak fungsi yaitu sebagai penyaring debu, penyimpan air tanah, penyejuk dan pendingin alami. Selain itu tanaman juga dapat dijadikan sebagai taman yang akan memberikan suasana asri dan indah lingkungan sekitar kita.Dengan adanya pohon yang rindang, taman yang asri, otomatis kita akan menjadi nyaman dan betah di rumah maupun di kantor dalam melaksanakan tugas sehari-hari.

Sabtu

Mengurangi sistem transportasi yang tidak efisien dengan menghemat bahan bakar dan mengurangi angkutan pribadi;

Minggu

Melakukan penyuluhan atau sosialisasi adalah hal yang diperlukan agar orang-orang mengetahui bagaimana pentingnya upaya menjaga kebersihan lingkungan. Ini akan menyadarkan banyak orang akan bahaya lingkungan kotor dan memotivasi agar bisa menjaga kebersihan lingkungan.

Cara - Cara Menghemat Energi Listrik

Table 2. Di bawah ini beberapa contoh dari cara untuk menghemat energi listrik:

Memanfaatkan cahaya matahari untuk menerangi rumah pada pagi hari hingga sore hari.

Memasang daya listrik di rumah sesuai keperluan.

Mematikan kipas angin atau penyejuk ruangan ketika ruangan sedang sejuk.

Mematikan sakelar lampu jika sudah tidak diperlukan.

Mematikan sakelar lampu saat kondisi ruangan cukup cahaya.

Membatasi waktu menonton televisi.

Membeli Tangki Penampungan Air.

Mencabut kabel dari stopkontak apabila sudah tidak digunakan.

Mencabut pengisi daya telepon seluler atau laptop yang terpasang di stopkontak.

Mengatur Suhu Sesuai Kebutuhan.


Notes:

  • The display of result on the above maybe a little different, because the result is based on how you build the table, AsciiDoctor role attribute, tools.
  • AsciiDoctor syntax code .Decision Table / Cause-Effect is for table caption.
  • Using AsciiDoctor editor according to your environment and your requirement.



Bibliography

https://asciidocfx.com/
https://bulelengkab.go.id/
https://github.com/
https://jetbrains.com/
https://www.kemdikbud.go.id/
https://kemkes.go.id/
https://marketplace.visualstudio.com/
https://semarangkota.go.id/
https://www.vogella.com/

Senin, 24 Februari 2025

Visual Basic Naming Conventions And Visual Basic Naming Rules

Visual Basic Naming Rules

Use the following rules when you name procedures, constants, variables, and arguments in a Visual Basic module:

  1. You must use a letter as the first character or an underscore.
  2. You can't use a space, period (.), exclamation mark (!), or the characters at symbol (@), Ampersand (&), Dollar sign ($),  number sign (#) in the name.
  3. Name can't exceed 255 characters in length.
  4. Generally, you shouldn't use any names that are the same as the (intrinsic or default or built-in) function, statement, method, and (intrinsic or default or built-in) constant names used in Visual Basic or by the host application. Otherwise you end up shadowing the same keywords in the language. To use an intrinsic language function, statement, or method that conflicts with an assigned name, you must explicitly identify it. Precede the intrinsic function, intrinsic statement, or intrinsic method name with the name of the associated type library. For example, if you have a variable called Left, you can only invoke the Left function by using VBA.Left.
  5. Avoid using names in an inner scope that are the same as names in an outer scope. Errors can result if the wrong variable is accessed. If a conflict occurs between a variable and the keyword of the same name, you must identify the keyword by preceding it with the appropriate type library. For example, if you have a variable called Date, you can use the intrinsic Date function only by calling DateTime.Date.

Visual Basic Naming Conventions

The following suggestions apply to naming.

  1. Begin each separate word in a name with a capital letter, as in FindLastRecord and RedrawMyForm.
  2. Begin function and method names with a verb, as in InitNameArray or CloseDialog.
  3. Begin class, structure, module, and property names with a noun, as in EmployeeName or CarAccessory.
  4. Begin interface names with the prefix "I", followed by a noun or a noun phrase, like IComponent, or with an adjective describing the interface's behavior, like IPersistable. Do not use the underscore, and use abbreviations sparingly, because abbreviations can cause confusion.
  5. Begin event handler names with a noun describing the type of event followed by the "EventHandler" suffix, as in "MouseEventHandler".
  6. In names of event argument classes, include the "EventArgs" suffix.
  7. If an event has a concept of "before" or "after," use a suffix in present or past tense, as in "ControlAdd" or "ControlAdded".
  8. For long or frequently used terms, use abbreviations to keep name lengths reasonable, for example, "HTML", instead of "Hypertext Markup Language". In general, variable names greater than 32 characters are difficult to read on a monitor set to a low resolution. Also, make sure your abbreviations are consistent throughout the entire application. Randomly switching in a project between "HTML" and "Hypertext Markup Language" can lead to confusion.



Next Visual Basic 6 Variable Prefixes >


Graph Function of Linear Equations in Two Variables Using Latex



1. Type this following latex code in the latex editor:
% !TEX TS-program=pdflatex
% !TEX encoding=UTF-8 Unicode
%
%% File name: GraphLinearEquation2Variables1.tex
%% Document Definitions:
%% LINEAR SYSTEM FUNCTIONS GRAPH With 2 VARIABLES
%%-----------------------------------
%\usepackage{tgbonum}
%\usepackage{arevmath}

\documentclass[tikz,border=5pt]{standalone}
\usepackage{libertine}
\usepackage{tikz}
\usepackage{pgfplots}
%\pgfplotsset{compat=newest}
\pgfplotsset{compat=1.18}
\pgfplotsset{%
    axis line origin/.style args={#1,#2}{
        x filter/.append code={ % Check for empty or filtered out numbers
            \ifx\pgfmathresult\empty\else\pgfmathparse{\pgfmathresult-#1}\fi
        },
        y filter/.append code={
            \ifx\pgfmathresult\empty\else\pgfmathparse{\pgfmathresult-#2}\fi
        },
        xticklabel=\pgfmathparse{\tick+#1}\pgfmathprintnumber{\pgfmathresult},
        yticklabel=\pgfmathparse{\tick+#2}\pgfmathprintnumber{\pgfmathresult}
    }
}

\makeatletter \newcommand{\pgfplotsdrawaxis}{\pgfplots@draw@axis} \makeatother

\pgfplotsset{
    every tick/.append style={color=black},
    after end axis/.append code={
        \pgfplotsset{
            axis line style=opaque,
            ticklabel style=opaque,
            tick style=opaque,
            grid=none
        }
        \pgfplotsdrawaxis
    },
} % applies to major and minor ticks,

\pgfplotsset{axis line on top/.style={
  axis line style=opaque,
  ticklabel style=transparent,
  tick style=opaque,
  axis on top=true,
  after end axis/.append code={
    \pgfplotsset{axis line style=opaque,
      ticklabel style=transparent,
      tick style=opaque,
      color=white,
      grid=true}
    \pgfplotsdrawaxis}
  }
} %% applies to axis line on top

\boldmath

\begin{document}

%% Graph Function of Linear Equations in Two Variables
%%Title
\begin{tikzpicture}
\node (0,0) {\textbf{Graphing of System}};
\node[below] at (0,-0.12) {\textbf{of}};
\node[below] at (0,-0.45) {\textbf{Linear Equations}};
\node[below] at (0,-0.80) {\textbf{with}};
\node[below] at (0,-1.15) {\textbf{Two Variables}};
\end{tikzpicture}
\begin{tikzpicture}[scale=1]
        \begin{axis}[x=1cm,y=1cm,
        latex-latex,
            axis lines = middle,
            xlabel = {$x$},
            ylabel = {$y$},
            %xtick = \empty,
            xtick style={-},
            %ytick = \empty,
            ytick style ={-},
            xmin=-5, xmax=4.5,
            ymin=-3.1, ymax=6.5,small, axis on top, grid=none, minor grid style={very thin,gray!30}, major grid style={very thin,gray!30},
            xticklabel style={fill=white!5,-},
            yticklabel style={fill=white!5,-}, extra y ticks={2}, extra y tick style={fill=white,-}]         
            % Plot 3
\addplot [
domain=-1:5,
samples=1000,
black,very thick,-
]
 coordinates{(-5,0)(-4,0.5)(-3,1)(-2,1.5)(-1,2)(0,2.5)(1,3)} 
            node [pos=1, right, black, sloped] {\bfseries $x-2y=-5$};
            \addplot[
            domain=-4:0,
            black,
            very thick,
            -]
            coordinates{
            (-5,-8)(-4,-4)(-3,-2)(-2,0)(-1,2)(0,4)(1,6)
            }
            node[pos=1, right, black]{\bfseries $2x-y=-4$};
            
            \addplot[black,dashed,-]
            coordinates{(-1,-3)(-1,2)} node[blue]{\Huge{}\textbullet};
            
            \addplot[black,dashed,-]
            coordinates{(-1,2)(3.5,2)};
        \end{axis}
    \end{tikzpicture}
\end{document}
2. Save file as GraphLinearEquation2Variables1.tex
3. Then build or typeset the Latex code.

Output

Notes

To see the more clear picture, click on the picture.

Bibliography

https://byjus.com/
https://bccampus.ca/ ( university )
https://www.cuemath.com/
https://www.nku.edu/ ( university )

Related Post

Linear Functions Graph in Latex 1b

1. Type this following latex code in the latex editor: 

% !TEX TS-program=pdflatex

% !TEX encoding=UTF-8 Unicode

%

%% File name: linearGraphTypes1b.tex

%% Document Definitions:

%% LINEAR FUNCTIONS GRAPH

%%-----------------------------------

\documentclass[12pt,a4paper]{report}

%% Load Packages

\usepackage{amsmath}

\usepackage{bm}

\usepackage[active,tightpage]{preview}

\PreviewEnvironment{tikzpicture}

\setlength\PreviewBorder{0.25pt}

\usepackage{libertine}

\usepackage{tikz}

\usepackage{pgfplots}

\pgfplotsset{compat=1.18}

\pgfplotsset{%

    axis line origin/.style args={#1,#2}{

        x filter/.append code={ % Check for empty or filtered out numbers

            \ifx\pgfmathresult\empty\else\pgfmathparse{\pgfmathresult-#1}\fi

        },

        y filter/.append code={

            \ifx\pgfmathresult\empty\else\pgfmathparse{\pgfmathresult-#2}\fi

        },

        xticklabel=\pgfmathparse{\tick+#1}\pgfmathprintnumber{\pgfmathresult},

        yticklabel=\pgfmathparse{\tick+#2}\pgfmathprintnumber{\pgfmathresult}

    }

}


\makeatletter \newcommand{\pgfplotsdrawaxis}{\pgfplots@draw@axis} \makeatother


\pgfplotsset{

    every tick/.append style={color=black},

    after end axis/.append code={

        \pgfplotsset{

            axis line style=opaque,

            ticklabel style=opaque,

            tick style=opaque,

            grid=none

        }

        \pgfplotsdrawaxis

    },

} % applies to major and minor ticks,

\begin{document}

\begin{tikzpicture}

%% Function Title

\node (0,0) {\textbf{Vertical Line Test}};

\node[below] at (0,-0.10) {\textbf{Function}};

\node[below] at (0,-0.45) {\textbf{in}};

\node[below] at (0,-0.75) {\textbf{Coordinate Cartesian}};

\node[below] at (0,-1.1) {\textbf{Plane}};

\end{tikzpicture}

\begin{tikzpicture}[scale=1]

        \begin{axis}[x=1cm,y=1cm,

        latex-latex,

            axis lines = middle,

            xlabel = {$x$},

            ylabel = {$y$},

            xtick = \empty,

            ytick = \empty,

            xmin=-3.2, xmax=3.2,

            ymin=-3.1, ymax=3.1,small, axis on top, grid=none, minor grid style={very thin,gray!30}, major grid style={very thin,gray!30}]

            % Plot 2 undefined slope, x = constant, type of line: vertical

            \addplot [

            domain = -1:5,

            samples = 1000,blue,very thick] coordinates {(-1.5,-6)(-1.5,6)} 

            node [pos=.65, left, black] {\bfseries $\mathbf{x=b}$};

        \end{axis}           

\end{tikzpicture}

\end{document}

2. Save file as linearGraphTypes1b.tex

3. Then build or typeset the Latex code.

Output


< Previous Linear Functions Graph in Latex 1




Notes

To see the more clear picture, click on the picture.


Bibliography

https://courses.lumenlearning.com/
https://www.bbc.co.uk/
https://www.centennialcollege.ca/ ( university )
https://www.palmbeachstate.edu/ ( university )

Minggu, 23 Februari 2025

Install Dan Menjalankan XAMPP

  1. Download dan install software XAMPP jika belum men-download dan meng-install XAMPP.
  2. Buka "XAMPP Control Panel" (server lokal) dari lokasi XAMPP diinstall, contoh: C:/xampp/htdocs
  3. Klik tombol Start di sebelah modul Apache untuk menjalankan Apache jika perlu.
  4. Klik tombol Start di sebelah modul MySQL untuk menjalankan MySQL jika perlu.
  5. Klik tombol Start di sebelah modul lainnya jika perlu.



untuk belajar menulis HelloWorld di PHP menggunakan XAMPP, click di Hello World PHP XAMPP >


Notes

untuk gambar yang lebih jelas, klik di gambar.

Related Post


Decision Table

Decision tables are a concise visual representation for specifying which actions to perform or decision to be taken depending on given conditions. Decision table is the term used for a Control table or State-transition or Cause-Effects table in the field of Business process modeling.
  • Each decision corresponds to a variable, relation or predicate whose possible values are listed among the condition alternatives. 
  • Each action is a procedure or operation to perform, and the entries specify whether (or in what order) the action is to be performed for the set of condition alternatives the entry corresponds to.
  • Rules are combinations of conditions and actions. Each row in a decision table typically represents a rule that maps a specific set of conditions to an action. Rules are what make decision tables so powerful; they allow you to manage complex logic by listing out all possible condition-action pairs systematically. Typically to place a simple Boolean values, and the action entries are check-marks. Typically to place a do not care symbol (this can be a hyphen, although using a blank is discouraged as it may merely indicate that the decision table has not been finished).
Typically Decision Table form is:
  • One per row, on the left is indicated condition, action, 
  • Each column on the right is indicated business rules.
to learn a sample decision table in AsciiDoctor, click on:

Bibliography

https://camunda.com/
https://en.wikipedia.org/
https://www.ibm.com/
https://www.sciencedirect.com/
https://www.smartsheet.com/
https://www.visual-paradigm.com/

Jumat, 21 Februari 2025

Hello World ReactJS Client Server Rendering

Requirement:

  • ReactJS version: >=18.
  • Modern Internet Browser, e.g. Google Chrome.
  • Web Editor or Web IDE or Text Editor.
  • Internet connection.

Tutorial:

1. Type the HTML source code on your web editor:
<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>Hello World in React</title>
  </head>
  <body>
    <div id="helloWorldContainer"></div>

    <!-- Load React. -->
    <!-- Note: when deploying, replace "development.js" with "production.min.js". -->
    <script src="https://unpkg.com/react@18/umd/react.development.js" crossorigin></script>
    <script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js" crossorigin></script>

    <!-- Load our React component. -->
    <script src="assets/script/helloWorld1.js"></script>
  </body>
</html>
2. Save as helloWorld.html
3. Type the JS source code on your web editor:
'use strict';

const reactElem = React.createElement;

class HelloWorld extends React.Component {
    render() {
        return reactElem(
            'h1', null, 'hello world'
        );
    }
}
const domContainer = document.getElementById('helloWorldContainer');
const root = ReactDOM.createRoot(domContainer);
root.render(reactElem(HelloWorld));
4. Save as helloWorld1.js
5. Open in your browser.

Output



Notes

To see the more clear picture, click on the picture.

Bibliography

https://sko.dev/
https://www.tutorialspoint.com/
ReactJS;Wiley publisher
JavaScript;Sams publisher

Kamis, 20 Februari 2025

Online Register Form Example

1. Type this following HTML source code in your web editor:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<!--

BlueHost, ColorLib, DigitalOcean, Hostinger, PetaniKode, semrush, typeform

-->

<html>

<head>

<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">

</head>

<body>

<!-- Title Page -->

<h2>Register</h2>

<form name="registerForm" id="registerForm" method="post" action="#">
<!-- several input text -->
<label for="inputTextName">Username</label><br>
<input type="text" name="inputTextName">
<br>
<label for="inputTextE-Mail">E-Mail</label><br>
<input type="text" name="inputE-Mail">
<br>
<label for="inputPassword">Password</label><br>
<input type="password" name="inputPassword">
<br>
<label for="inputConfirmPassword">Confirm Password</label><br>
<input type="password" name="inputConfirmPassword">
<br>
<!-- this button triggers the form submission -->
<input type="submit" name="submitRegister" value="Register">
<br>
</form>
</body>
</html>

2. Save as OnlineRegisterSample1.html

3. Open in your browser. 

Output

Notes

  • This is a simple example to learning an online registration form development.
  • To see the more clear picture, click on the picture.

Bibliography

https://colorlib.com/

https://www.hostinger.com/

https://www.petanikode.com/

https://www.semrush.com/

https://www.typeform.com/

Related Post

Most Used Environ Variables In Visual Basic Classic

Environ("AppData") '-- Application Data Roaming

Environ("CommonProgramFiles") '-- Common Program Files

Environ("Temp") '-- Temporary Folder

Environ("UserProfile") '-- All User Profile

Environ("UserProfile") & "\My Documents" '-- My Document



Bibliography

https://learn.microsoft.com/ ( manual book )
https://wellsr.com/

Related Post

Selasa, 18 Februari 2025

Make A Simple Bus Order Option Using JavaScript

1. Type this following HTML source code in your web editor:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">

<title>Top Bus Manufactures: Pull-down Menu</title>

</head>

<body>


<center>

<h1>Bus Manufactures</h1>

( Choose based on your appropriate requirement )

</center>

You can choose from one of this following options:


<!-- construct the form and select options -->

<form name="frmBusBrands">

<select name="listBusBrands" id="listBusBrands" onchange="doShowTheOptions(this)" size="1">

</select>

</form>

<div id="outputBusBrands"></div>


<script language="javascript" type="text/javascript">

<!-- --- -->

<!-- Written by private course and tutor course inspired by w3schools -->

<!--  //

// create an Array using the javascript keyword new

var busBrands = new Array(14);

// changing Array element

busBrands[0] = "Anhui Ankai Automobile Co. Ltd";

busBrands[1] = "GAZ Group";

busBrands[2] = "Higer Bus";

busBrands[3] = "Isuzu";

busBrands[4] = "Iveco";

busBrands[5] = "Kamaz";

busBrands[6] = "Marcopolo S.A.";

busBrands[7] = "Mercedes Benz Daimler AG";

busBrands[8] = "NFI Group";

busBrands[9] = "Scania AB";

busBrands[10] = "Solaris Bus";

busBrands[11] = "Toyota";

busBrands[12] = "Volkswagen (VW)";

busBrands[13] = "Volvo";

busBrands[14] = "Zhengzhou Yutong Bus Co., Ltd.";


// feed the option element

var optBusBrands;

var selectBusBrands = document.getElementById("listBusBrands");

for (iLoop = 0; iLoop < busBrands.length; iLoop++) {

optBusBrands = new Option(busBrands[iLoop], busBrands[iLoop]);

selectBusBrands.options.add(optBusBrands);

}


function doShowTheOptions(form) {

document.getElementById("outputBusBrands").innerText = form.options[getSelectedValue()].value;

}

function getSelectedValue() {

return document.frmBusBrands.listBusBrands.selectedIndex;

}

// -->

</script>

</body>

</html>

2. Save as BusManufacturerOptions1.htm
3. Open in your browser.

Notes

  • Type <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> in one line.
  • Type <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> in one line.
  • Type <select name="listBusBrands" id="listBusBrands" onchange="doShowTheOptions(this)" size="1"> in one line.
  • Type var selectBusBrands = document.getElementById("listBusBrands"); in one line.
  • Type optBusBrands = new Option(busBrands[iLoop], busBrands[iLoop]); in one line.
  • Type document.getElementById("outputBusBrands").innerText = form.options[getSelectedValue()].value; in one line.
  • Type return document.frmBusBrands.listBusBrands.selectedIndex; in one line.

Output

Figure 1. after you open in browser


Figure 2. click on the select element form
Figure 3. for example, click on the Isuzu

Figure 4. the Isuzu text is show in webpage

Bibliography

JavaScript Series; O'Reilly
Website Development; Peach Pit Press
https://www.bluehost.com/
https://www.hostgator.com/
https://www.hostinger.co.id/

Related Post



Search Your Tabs, Bookmarks, and History In Browser Address Bar

Search Your Tabs, Bookmarks, and History In Google Chrome Browser Address Bar And Mozilla Firefox Browser Address Bar

You can find specific tabs, bookmarks, and history using the browser address bar. 

Google Chrome

  • Starting type with @tabs, press space bar and then typing the title to see matching the tab.
  • Starting type with @bookmarks, press space bar and  then typing the bookmark title to looking for bookmark among all of your folders of bookmarks, right from the address bar.
  • Starting type with @history. press space bar and  then typing the history title to looking for history through all of your browsing history, right from the address bar.
  • Starting type with ?, press space bar and the typing the keyword to search the website.

Mozilla Firefox

  • Type a % before your search term to filter the results to only open tabs.
  • Type a ^ to show only matches in your browsing history.
  • Type a * to show only matches in your bookmarks.
  • Type a + to show only matches in bookmarks you've tagged.
  • Type a # to show only matches where every search term is part of the title or part of a tag.
  • Type a $ to show only matches where every search term is part of the web address (URL). The text “https://” or “http://” in the URL is ignored, but not “file:///”.
  • Add ? to show only search suggestions to search the website.

Bibliography

https://support.google.com/
https://support.mozilla.org/en-US/

Most HTML Symbol

These following HTML symbol are commonly for bullet or check mark:

SignDecimal codeHex codeName
&#9744;&#x2610;Ballot Box
&#9745;&#x2611;Ballot Box With X
&#9746;&#x2612;Ballot Box With Check
&#9747;&#x2613;Saltire
&#10003;&#x2713;Check Mark
&#10004;&#x2714;Heavy Check Mark
&#9989; &#x2705; White Heavy Check Mark
&#9829;&#x2665;Black Heart Suit
&#10084;&#x2764;Heavy Black Heart
&#10085;&#x2765;Rotated Heavy Black Heart Bullet
&#9753; &#x2619; Reversed Rotated Floral Heart Bullet
&#10086; &#x2766; Floral Heart
&#10087; &#x2767; Rotated Floral Heart Bullet
&#10083; &#x2763; Heavy Heart Exclamation Mark Ornament
&#9825; &#x2661; White Heart Suit
&#9932; &#x26CC; Crossing Lanes
&#9938; &#x26D2; Circled Crossing Lanes
&#9949; &#x26DD; Squared Saltire
&#10005; &#x2715; Multiplication X
&#10006; &#x2716; Heavy Multiplication X
&#10007; &#x2717; Ballot X
&#10008; &#x2718; Heavy Ballot X
&#10060; &#x274C; Cross Mark
&#10062; &#x274E; Negative Squared Cross Mark
&#10063; &#x274F; Lower Right Drop-Shadowed White Square
&#10064; &#x2750; Upper Right Drop-Shadowed White Square
&#10065; &#x2751; Lower Right Shadowed White Square
&#10066; &#x2752; Upper Right Shadowed White Square
&#8226; &#x2022; Bullet
&#9702; &#x25E6; White Bullet
&#8718; &#x220E; End Of Proof
&#8728; &#x2218; Ring Operator
&#8729; &#x2219; Bullet Operator
&#8730; &#x221A; Square Root
&#8853; &#x2295; Circled Plus
&#8855; &#x2297; Circled Times
&#8857; &#x2299; Circled Dot Operator
&#8858; &#x229A; Circled Ring Operator
&#8862; &#x229E; Squared Plus
&#8864; &#x22A0; Squared Times
&#8865; &#x22A1; Squared Dot Operator
&#8901; &#x22C5; Dot Operator
&#10539; &#x292B; Rising Diagonal Crossing Falling Diagonal
&#10540; &#x292C; Falling Diagonal Crossing Rising Diagonal
&#10625; &#x2981; Z Notation Spot
&#10683; &#x29BB; Circle With Superimposed X
&#10686; &#x29BE; Circled White Bullet
⦿ &#10687; &#x29BF; Circled Bullet
&#10695; &#x29C7; Squared Small Circle
&#10696; &#x29C8; Squared Square
&#10720; &#x29E0; Square With Contoured Outline
&#10753; &#x2A01; N-Ary Circled Plus Operator
&#10754; &#x2A02; N-Ary Circled Times Operator
&#10009; &#x2719; Outlined Greek Cross
&#10010; &#x271A; Heavy Greek Cross
&#10011; &#x271B; Open Centre Cross
&#10012; &#x271C; Heavy Open Centre Cross

Bibliography

https://www.alt-codes.net/
https://www.compart.com/
https://www.rapidtables.com/
https://www.toptal.com/
https://www.w3schools.com/

Related Post